Added patch to add cluster specific values

This commit is contained in:
Waldemar 2025-07-16 15:22:11 +02:00
parent 179c399b09
commit fe73a41286
Signed by: waldemar.kindler
SSH key fingerprint: SHA256:wlTo/iRV2dOcNfLJPdlwSsLvA1BH+gT9449nlU9sHXo
5 changed files with 32 additions and 9 deletions

View file

@ -18,18 +18,12 @@ spec:
name: in-cluster
namespace: argocd
sources:
- repoURL: https://forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/DevFW-CICD/argocd-helm.git
- repoURL: https://edp.buildth.ing/DevFW-CICD/argocd-helm.git
path: charts/argo-cd
# TODO: RIRE Can be updated when https://github.com/argoproj/argo-cd/issues/20790 is fixed and merged
# As logout make problems, it is suggested to switch from path based routing to an own argocd domain,
# similar to the CNOE amazon reference implementation and in our case, Forgejo
targetRevision: argo-cd-7.8.14-depends
helm:
valueFiles:
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/values.yaml
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
- $values/registry/base/core/argocd/values.yaml
- repoURL: https://edp.buildth.ing/waldemar.kindler/edp-gitops
targetRevision: HEAD
ref: values
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
targetRevision: HEAD
path: "{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/argocd/manifests"

View file

@ -0,0 +1,2 @@
resources:
- argocd.yaml

View file

@ -0,0 +1,11 @@
resources:
- ../../../../base/core/
patches:
- target:
kind: Application
patch: |
- op: add
path: /spec/sources/0/helm/valueFiles/-
value:
$values/registry/overlays/clusters/t09.de/abc/core/argocd/values.yaml

View file

@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: argocd
labels:
env: dev
spec:
sources:
- repoURL: https://edp.buildth.ing/DevFW-CICD/argocd-helm.git
path: charts/argo-cd
targetRevision: argo-cd-7.8.14-depends
helm:
valueFiles:
- $values/registry/base/core/argocd/values.yaml
- $values/registry/overlays/clusters/t09.de/abc/core/argocd/values.yaml