From 8e472d41372aa9e882488187469e009a658f75ba Mon Sep 17 00:00:00 2001 From: okozachenko Date: Thu, 23 Apr 2020 14:34:41 -0700 Subject: [PATCH] Fix the checking helm_values_file definition Change-Id: Ice93989a4eaa5125ea97586db1c915fdf59682b7 --- roles/helm-template/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}"