Skip to content

Instantly share code, notes, and snippets.

@cxhercules
Last active June 18, 2019 17:17

Revisions

  1. cxhercules revised this gist Jun 18, 2019. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions helm-value-trick.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    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 . }}"
    ...
    ```
  2. cxhercules created this gist Jun 18, 2019.
    11 changes: 11 additions & 0 deletions helm-value-trick.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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 . }}"
    ...