-
Notifications
You must be signed in to change notification settings - Fork 567
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
have access to the chart files in hook before applying it #801
Comments
@dugouchet Hey! Thanks for trying Helmfile. Unfortunately, Helmfile doesn't have access to the contents of automatically-downloaded charts. That's due to How Helmfile/Helm works - Under the hood, Helmfile just calls A workaround that came to my mind is this:
|
Btw, this should ideally be done more declaratively. I'd appreciate any feature request towards that. Maybe add an configuration option to download the chart locally and fills the local chart path to a template variable?
|
Thanks for your response @mumoshu. It's exactly what I did. I'll see if I have time and if it's interesting for users to have this feature. |
A solution here would also be useful for people wanting to run Kustomize on-top of a helm chart. |
@conradj87 Yeah that makes sense. Actually, that's what I did for helm-x and its integration with helmfile. |
hello guys,
I'm setting up helmfile for our production at tripadivisor. But I need some help from you for a specific need.
Each of our project have a /tmpl dir containing secrets tmpl and we generate secrets with consul-template. the /tmpl is packaged with the chart and pushed into chrtmuseum repository.
With helmfile, I want to apply a command to apply the command
consule-template to generate secrets values and apply it with other values.
To do that I did with hooks :
releases:
{{ if eq .Environment.Name "staging" }}
chart: chartmuseum/grafana
version: "0.1.0"
namespace: grafana
missingFileHandler: Error
hooks:
showlogs: true
command: "consul-template -vault-retry-attempts=1 -log-level=debug -vault-renew-token=false -template grafana/tmpl/secrets.yaml.tmpl:secrets.yaml -once"
{{ end }}
but it seems the presync doesn't download the chart to have access to it, isn't it? I have a no such file or directory error ...
Do you have an idea of how to manage it?
thank you in advance
The text was updated successfully, but these errors were encountered: