From 384b387de3a170937deecdf18ed788b66b2a8774 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sun, 12 Jan 2025 08:29:25 -0500 Subject: [PATCH] Update ks.yaml --- kubernetes/flux/cluster/ks.yaml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/kubernetes/flux/cluster/ks.yaml b/kubernetes/flux/cluster/ks.yaml index bf20bc4a9487e..eb23e5de6d211 100644 --- a/kubernetes/flux/cluster/ks.yaml +++ b/kubernetes/flux/cluster/ks.yaml @@ -48,25 +48,24 @@ spec: kind: Secret optional: true patches: - - patch: | - - op: add - path: /spec/decryption - value: + - patch: |- + apiVersion: kustomize.toolkit.fluxcd.io/v1 + kind: Kustomization + metadata: + name: not-used + spec: + decryption: provider: sops secretRef: name: sops-age - - op: add - path: /spec/postBuild/substituteFrom/-/ - value: - name: cluster-settings - kind: ConfigMap - optional: true - - op: add - path: /spec/postBuild/substituteFrom/-/ - value: - name: cluster-secrets - kind: Secret - optional: true + postBuild: + substituteFrom: + - name: cluster-settings + kind: ConfigMap + optional: true + - name: cluster-secrets + kind: Secret + optional: true target: group: kustomize.toolkit.fluxcd.io kind: Kustomization