From 775934660c86c8d1594d6f7b7191a97804046d7a Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Tue, 2 Dec 2025 00:39:24 +0100 Subject: [PATCH] feat: Substitute variables from cluster-variables --- clusters/testing/flux-system/kustomization.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/clusters/testing/flux-system/kustomization.yaml b/clusters/testing/flux-system/kustomization.yaml index 3842229..ff41123 100644 --- a/clusters/testing/flux-system/kustomization.yaml +++ b/clusters/testing/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/postBuild + value: + substituteFrom: + - kind: ConfigMap + name: cluster-variables + target: + kind: Kustomization + name: flux-system