From 30ed0a96f9c5f1695f012304970eed2164499d2c Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Wed, 9 Oct 2024 00:30:37 +0200 Subject: [PATCH] Properly set sops decryption --- .../flux-system/gotk-sync.yaml | 4 ---- .../flux-system/kustomization.yaml | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/clusters/titan.lan.huizinga.dev/flux-system/gotk-sync.yaml b/clusters/titan.lan.huizinga.dev/flux-system/gotk-sync.yaml index 15f5cad..a084b1c 100644 --- a/clusters/titan.lan.huizinga.dev/flux-system/gotk-sync.yaml +++ b/clusters/titan.lan.huizinga.dev/flux-system/gotk-sync.yaml @@ -19,10 +19,6 @@ metadata: name: flux-system namespace: flux-system spec: - decryption: - provider: sops - secretRef: - name: sops-gpg interval: 10m0s path: ./clusters/titan.lan.huizinga.dev prune: true diff --git a/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml b/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml index 3842229..16d1f51 100644 --- a/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml +++ b/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml @@ -1,5 +1,16 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- gotk-components.yaml -- gotk-sync.yaml + - gotk-components.yaml + - gotk-sync.yaml +patches: + - patch: | + - op: add + path: /spec/decryption + value: + provider: sops + secretRef: + name: sops-gpg + target: + kind: Kustomization + name: "flux-system"