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

helmfile environment #10

Open
notwaf opened this issue Feb 15, 2025 · 3 comments
Open

helmfile environment #10

notwaf opened this issue Feb 15, 2025 · 3 comments

Comments

@notwaf
Copy link

notwaf commented Feb 15, 2025

we deploy helmfile with different environments. is there a way to pass then environment into the argocd application somehow?

@lucj
Copy link
Owner

lucj commented Feb 15, 2025

Hello,
You can use env within the plugin property.
ENV_NAME is the property you can set in a cluster definition in argocd.

plugin: 
          env:
            - name: ENV_NAME
              value: '{{metadata.labels.ENV_NAME}}'

Doing so, it will select this specific helmfile environment.

@notwaf
Copy link
Author

notwaf commented Feb 18, 2025

ahh, gotcha. let me add this to the docs.

@lucj
Copy link
Owner

lucj commented Feb 20, 2025

Thank you for pointing this out. I need to update the example as well to reflect the usage of the ENV_NAME.

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