Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgoCD Release Template #2153

Closed
adecchi-2inno opened this issue Jul 20, 2022 · 1 comment
Closed

ArgoCD Release Template #2153

adecchi-2inno opened this issue Jul 20, 2022 · 1 comment

Comments

@adecchi-2inno
Copy link

I have setup a release template for Argo Application and then call it at each release, like the following example:

`

  • name: grafana
    <<: *argocd-apps
    namespace: monitoring
    createNamespace: true
    disableValidation: true
    missingFileHandler: Warn
    labels:
    release-name: "{{ {{ .Release.Name }} }}"
    layer: "infra"
    set:
    • name: source.helm.file
      file: "helmfiles/grafana/{{ .Environment.Name }}/values.yaml.gotmpl"
      `

So, my doubt here is to try to understand if possible to template a values.yaml.gotmpl used at set section previous to submit it to Argo
My intention is to template the values.yaml used by the grafana helm-chart and create the Grafana Argo CD Application. My intention is to use environment variable({{ requiredEnv "ARGOCD_INGRESS_NAME" }}) to then pass it the gotmpl to create the Grafana ingress. If not possible , is possible to use envsubst or another better way to work with it ?

@yxxhero
Copy link
Contributor

yxxhero commented Jul 20, 2022

see: #2148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants