Use appVersion as download tag
Closed this issue · 1 comments
bedis commented
Hi,
The controller version is to currently set in 2 locations:
- Chart.yaml: appVersion
- values.yaml: controller.image.tag
And consumed in templates/controller-deployment.yaml this way:{{ .Values.controller.image.tag }}
I would like to use the appVersion as the tag, so we only need to update appVersion to get the relevant image and avoid any confusion, like AppVersion displayed by helm ls
does not match the one running.
For this purpose, you can update values.yaml the following way:
tag: "{{ .Chart.AppVersion }}"
Then use it this way in templates/controller-deployment.yaml:
{{ tpl .Values.controller.image.tag . }}
You can still enforce a specific value using --set controller.image.tag=latest
when running helm install or upgrade.
AlecTroemel commented