Skip to content

Instantly share code, notes, and snippets.

@cxhercules
Last active June 18, 2019 17:17
Show Gist options
  • Save cxhercules/f958627b791f1b5cc0ec4516a1d7487e to your computer and use it in GitHub Desktop.
Save cxhercules/f958627b791f1b5cc0ec4516a1d7487e to your computer and use it in GitHub Desktop.
Processing helm variables in values file

You need to use a tpl trick to interpolate the value, since helm variable in values are not processed, you have to update your deployment, for example:

In your values.yaml:

  tag: "{{ .Chart.AppVersion }}"

In your deployment:

  image: "{{ .Values.api.image.repository }}:{{ tpl .Values.api.image.tag . }}"
@cxhercules
Copy link
Author

Found in issue referenced here helm/helm#2514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment