Mohammed Naser 0e67960f64 helm-template: enable using values file
This patch allows the user to use a provided values file when running
the helm-template role.

Change-Id: I8e0988c8ec58a33228a326145458a9a0fca323a0
2020-04-20 20:34:40 -04:00

23 lines
635 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 %}--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