Check all the deployments once at the end

Also wait for the deployments resources before waiting for others
to avoid race conditions (desired pods might not exist yet).

Change-Id: Icbf7426c80511707b10d7522b22b30ea8c434a93
This commit is contained in:
Radosław Piliszek 2024-02-13 10:39:52 +01:00
parent 4887ac0b39
commit d46f4bc4df

View File

@ -6,10 +6,18 @@
vars:
helm_release_name: "{{ zj_item.key }}"
helm_chart: "{{ zj_item.value }}"
helm_wait_for_pods: false # we want this once and with more control
loop: "{{ helm_charts | dict2items }}"
loop_control:
loop_var: 'zj_item'
- name: Wait for the deployments
command: kubectl wait --for=condition=Available --timeout=120s deployment --all
- name: Wait for the remaining resources
include_role:
name: wait-for-pods
- name: Check pod restarts after helm chart installations
include_role:
name: check-pod-restarts