Substitute cluster env variable

This commit is contained in:
2025-12-02 00:21:57 +01:00
parent b02fe72253
commit b6f346bf7a
11 changed files with 39 additions and 33 deletions

View File

@@ -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

View File

@@ -6,4 +6,4 @@ resources:
- ../../controllers/cert-manager/cert-manager.yaml
- ../../configs/artifacts.yaml
- ../../configs/letsencrypt/letsencrypt.yaml
- ../../configs/certificates/staging/certificates.yaml
- ../../configs/certificates/certificates.yaml