zuul-jobs/roles/helm-template/tasks/main.yaml
okozachenko 8e472d4137 Fix the checking helm_values_file definition
Change-Id: Ice93989a4eaa5125ea97586db1c915fdf59682b7
2020-04-23 14:35:44 -07:00

23 lines
646 B
YAML

- name: Install dependencies
command: "helm dep up {{ helm_chart }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Print templated charts
command: "helm template -n zuul {{ helm_chart }}"
args:
chdir: "{{ zuul_work_dir }}"
- name: Deploy templated charts
shell: |
set -o pipefail
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 }}"
- name: Wait for all pods to become Ready
include_role:
name: wait-for-pods
when: helm_wait_for_pods | bool