-
Notifications
You must be signed in to change notification settings - Fork 488
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
Default image tags to .Charts.AppVersion #697
Comments
Do you think there'd be a need for it? We do populate tags in the default values.yaml, and Helm will use those if you don't provide any value of your own. |
It'd be for great help in a CI pipeline. We use custom Docker images and |
What would be your end workflow? Would you need to remove the existing default? We'd prefer to keep the defaults in values.yaml. We can't rely entirely on We can probably get rid of With that removed, you could use a template with access to the top-level values array for the Kong images. FWIW, you can provide otherwise out of scope variables to a template by constructing a new |
Maybe we're not talking about the same "default" values. I wanted to point out that in Helm Charts generated with image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" So if you don't put |
User-supplied values work as overlays: when you
In the templates,
Using |
Hey,
A lot of Helm charts out there fall back to the
appVersion
inChart.yaml
if no tag is given for the Docker image, so that you can update it dynamically usinghelm package mychart --app-version 1.2.3
.I took a look at
_helpers.tpl
, but it looks very intricate and no chance of getting a hold of.Charts
inside thedefine "kong.getRepoTag"
. For now, I amsed
'ing the tag to my chart version beforehelm package
. Could there be a nicer solution?Cheers
The text was updated successfully, but these errors were encountered: