Radosław Piliszek d3b7025b85 Make helm always wait
This ensures we run installations fully serially and not overload
this small CI setup.

Change-Id: I4f976c8589309253548409781702afa5a3fbd0c8
2024-04-08 13:03:20 +02:00

27 lines
808 B
YAML

- hosts: all
tasks:
- name: Pull helm charts deps
command: "helm dependency build {{ helm_chart }}"
vars:
helm_chart: "{{ zj_item.value }}"
loop: "{{ helm_charts | dict2items }}"
loop_control:
loop_var: 'zj_item'
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Install helm charts
command: "helm install {{ helm_release_name }} {{ helm_chart }} --wait --wait-for-jobs"
vars:
helm_release_name: "{{ zj_item.key }}"
helm_chart: "{{ zj_item.value }}"
loop: "{{ helm_charts | dict2items }}"
loop_control:
loop_var: 'zj_item'
args:
chdir: "{{ zuul.project.src_dir }}"
- name: Check pod restarts after helm chart installations
include_role:
name: check-pod-restarts