From 01482cc6dbdda0809df85e70d577f2c0dde8a582 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sun, 2 Apr 2023 13:46:01 -0400 Subject: [PATCH] Add flux/apps.yaml --- cluster/flux/apps.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 cluster/flux/apps.yaml diff --git a/cluster/flux/apps.yaml b/cluster/flux/apps.yaml new file mode 100644 index 0000000..63a473d --- /dev/null +++ b/cluster/flux/apps.yaml @@ -0,0 +1,45 @@ +--- +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 +kind: Kustomization +metadata: + name: cluster-apps + namespace: flux-system +spec: + interval: 30m + path: ./cluster/apps + prune: true + sourceRef: + kind: GitRepository + name: home-kubernetes + decryption: + provider: sops + secretRef: + name: sops-age + postBuild: + substituteFrom: + - kind: ConfigMap + name: cluster-settings + - kind: Secret + name: cluster-secrets + patches: + - patch: |- + apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 + kind: Kustomization + metadata: + name: not-used + spec: + decryption: + provider: sops + secretRef: + name: sops-gpg + postBuild: + substituteFrom: + - kind: ConfigMap + name: cluster-settings + - kind: Secret + name: cluster-secrets + target: + group: kustomize.toolkit.fluxcd.io + version: v1beta2 + kind: Kustomization + labelSelector: substitution.flux.home.arpa/disabled notin (true) \ No newline at end of file