Skip to content

Commit

Permalink
[host-ocp4-assisted-installer] Add retries to find failed installer p…
Browse files Browse the repository at this point in the history
…ods (#8801)
  • Loading branch information
agonzalezrh authored Nov 13, 2024
1 parent e36499a commit 7d96b18
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ansible/roles/host-ocp4-assisted-installer/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,10 @@
- app=installer
field_selectors:
- status.phase=Failed
register: pod_info
register: r_pod_info
delay: 30
retries: 10
until: r_pod_info is success

- name: Delete Error Pods
kubernetes.core.k8s:
Expand All @@ -580,7 +583,7 @@
name: "{{ pod.metadata.name }}"
namespace: "{{ pod.metadata.namespace }}"
state: absent
loop: "{{ pod_info.resources }}"
loop: "{{ r_pod_info.resources }}"
loop_control:
loop_var: pod

Expand Down

0 comments on commit 7d96b18

Please sign in to comment.