Mohammed Naser 41f53d1a52 helm-template: allow users to disable wait-for-pods
It's possible that a Helm chart does *not* create any pods, such as in
the case if you're using Helm to manage all of your RBAC resources.

Change-Id: I98b8427b1f4b6a2f454c3f796fa8a6ad2d765c46
2020-04-20 20:07:07 -04:00

23 lines
567 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 -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