Merge "helm-template: enable using values file"

This commit is contained in:
Zuul 2020-04-22 06:09:26 +00:00 committed by Gerrit Code Review
commit 5cf7470fa9
2 changed files with 5 additions and 1 deletions

View File

@ -17,6 +17,10 @@ already setup and the Helm executable is installed.
Determine if the role should wait for all pods to go up after it applies Determine if the role should wait for all pods to go up after it applies
the template. the template.
.. zuul:rolevar:: helm_values_file
File containing Helm values to use when templating.
.. zuul:rolevar:: zuul_work_dir .. zuul:rolevar:: zuul_work_dir
:default: {{ zuul.project.src_dir }} :default: {{ zuul.project.src_dir }}

View File

@ -11,7 +11,7 @@
- name: Deploy templated charts - name: Deploy templated charts
shell: | shell: |
set -o pipefail set -o pipefail
helm template -n {{ helm_release_name }} {{ helm_chart }} | kubectl apply -f- helm template {% if helm_values_file %}--values {{ helm_values_file }} {% endif %}-n {{ helm_release_name }} {{ helm_chart }} | kubectl apply -f-
args: args:
executable: /bin/bash executable: /bin/bash
chdir: "{{ zuul_work_dir }}" chdir: "{{ zuul_work_dir }}"