diff --git a/roles/helm-template/tasks/main.yaml b/roles/helm-template/tasks/main.yaml index 6eb052aae..78c4873f6 100644 --- a/roles/helm-template/tasks/main.yaml +++ b/roles/helm-template/tasks/main.yaml @@ -11,7 +11,7 @@ - name: Deploy templated charts shell: | set -o pipefail - helm template {% if helm_values_file %}--values {{ helm_values_file }} {% endif %}-n {{ helm_release_name }} {{ helm_chart }} | kubectl apply -f- + helm template {% if helm_values_file is defined %}--values {{ helm_values_file }} {% endif %}-n {{ helm_release_name }} {{ helm_chart }} | kubectl apply -f- args: executable: /bin/bash chdir: "{{ zuul_work_dir }}"