Merge "helm-template: enable using values file"
This commit is contained in:
commit
5cf7470fa9
@ -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
|
||||
the template.
|
||||
|
||||
.. zuul:rolevar:: helm_values_file
|
||||
|
||||
File containing Helm values to use when templating.
|
||||
|
||||
.. zuul:rolevar:: zuul_work_dir
|
||||
:default: {{ zuul.project.src_dir }}
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
- name: Deploy templated charts
|
||||
shell: |
|
||||
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:
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul_work_dir }}"
|
||||
|
Loading…
Reference in New Issue
Block a user