diff --git a/kubernetes/flux/cluster/ks.yaml b/kubernetes/flux/cluster/ks.yaml index 9969243706db4..8878d4a0fe925 100644 --- a/kubernetes/flux/cluster/ks.yaml +++ b/kubernetes/flux/cluster/ks.yaml @@ -56,15 +56,17 @@ spec: secretRef: name: sops-age - op: add - path: /spec/postBuild + path: /spec/postBuild/substituteFrom/- value: - substituteFrom: - - name: cluster-settings - kind: ConfigMap - optional: true - - name: cluster-secrets - kind: Secret - optional: true + name: cluster-settings + kind: ConfigMap + optional: true + - op: add + path: /spec/postBuild/substituteFrom/- + value: + name: cluster-secrets + kind: Secret + optional: true target: group: kustomize.toolkit.fluxcd.io kind: Kustomization