cloud-pak-gitops / community

Community for CloudPakOps
Apache License 2.0
0 stars 3 forks source link

Pass parameter from argocd app to sub helm chart #8

Open gyliu513 opened 2 years ago

gyliu513 commented 2 years ago

@jianh619

gyliu513 commented 2 years ago

https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#build-environment

  spec:
    source:
      helm:
        parameters:
        - name: app
          value: $ARGOCD_APP_NAME
gyliu513 commented 2 years ago

we should be able to set parameters for argocd application helm chart, and then pass the parameters to backend helm charts.

i.e. from https://github.com/cloud-pak-gitops/instana-gitops/blob/main/config/argocd-apps/all-in-one/templates/crossplane-provider-app.yaml#L22-L24 to https://github.com/cloud-pak-gitops/instana-gitops/blob/main/config/crossplane-provider/values.yaml