From 2bca9e728865903c8bfb01ad7b09b7d8d34b21d1 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Mon, 18 Nov 2024 23:47:47 +0100 Subject: [PATCH] Moved sops patch to separate file --- .../flux-system/kustomization.yaml | 11 +---------- .../flux-system/sops-overlay.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 clusters/titan.lan.huizinga.dev/flux-system/sops-overlay.yaml diff --git a/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml b/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml index 16d1f51..d885c2b 100644 --- a/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml +++ b/clusters/titan.lan.huizinga.dev/flux-system/kustomization.yaml @@ -4,13 +4,4 @@ resources: - 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" + - path: sops-overlay.yaml diff --git a/clusters/titan.lan.huizinga.dev/flux-system/sops-overlay.yaml b/clusters/titan.lan.huizinga.dev/flux-system/sops-overlay.yaml new file mode 100644 index 0000000..a97b70d --- /dev/null +++ b/clusters/titan.lan.huizinga.dev/flux-system/sops-overlay.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: flux-system + namespace: flux-system +spec: + decryption: + provider: sops + secretRef: + name: sops-gpg