From 56a93357420edef7d56878520a53705b31244962 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Tue, 2 Dec 2025 00:21:57 +0100 Subject: [PATCH] Substitute cluster env variable --- clusters/testing/flux-system/kustomization.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/clusters/testing/flux-system/kustomization.yaml b/clusters/testing/flux-system/kustomization.yaml index 3842229..f62b4c6 100644 --- a/clusters/testing/flux-system/kustomization.yaml +++ b/clusters/testing/flux-system/kustomization.yaml @@ -1,5 +1,15 @@ 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: + substitute: + cluster_env: staging + target: + kind: Kustomization + name: flux-system