From 245b7c0bcac5b1ba896613c5b142fb73ff778692 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 7 Sep 2024 00:01:46 -0400 Subject: [PATCH] fix(traefik): add substituteFrom config map and secrets --- kubernetes/common/apps/traefik/ks.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/kubernetes/common/apps/traefik/ks.yaml b/kubernetes/common/apps/traefik/ks.yaml index 24dc76d..ce392ff 100644 --- a/kubernetes/common/apps/traefik/ks.yaml +++ b/kubernetes/common/apps/traefik/ks.yaml @@ -16,6 +16,13 @@ spec: provider: sops secretRef: name: sops-gpg + postBuild: + substitute: {} + substituteFrom: + - kind: ConfigMap + name: cluster-settings + - kind: Secret + name: cluster-secrets --- # yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json apiVersion: kustomize.toolkit.fluxcd.io/v1 @@ -37,4 +44,11 @@ spec: name: sops-gpg dependsOn: - name: traefik - namespace: flux-system \ No newline at end of file + namespace: flux-system + postBuild: + substitute: {} + substituteFrom: + - kind: ConfigMap + name: cluster-settings + - kind: Secret + name: cluster-secrets \ No newline at end of file