From a1ec188e6db2f3732c8b2a8bb75c7b6e6cb473f9 Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Sat, 11 Jan 2025 22:40:03 -0500 Subject: [PATCH] fix: simplify kustomization patch --- kubernetes/flux/cluster/ks.yaml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kubernetes/flux/cluster/ks.yaml b/kubernetes/flux/cluster/ks.yaml index eb23e5de6d211..9969243706db4 100644 --- a/kubernetes/flux/cluster/ks.yaml +++ b/kubernetes/flux/cluster/ks.yaml @@ -48,17 +48,16 @@ spec: kind: Secret optional: true patches: - - patch: |- - apiVersion: kustomize.toolkit.fluxcd.io/v1 - kind: Kustomization - metadata: - name: not-used - spec: - decryption: + - patch: | + - op: add + path: /spec/decryption + value: provider: sops secretRef: name: sops-age - postBuild: + - op: add + path: /spec/postBuild + value: substituteFrom: - name: cluster-settings kind: ConfigMap