Skip to content

Commit

Permalink
addons/cert_manager: retries until webhook pods has been created (kub…
Browse files Browse the repository at this point in the history
…ernetes-sigs#7850)

Fix task 'Cert Manager | Wait for Webhook pods become ready' failed due to webhook pods don't exist yet by using `retries..until` trick like kubernetes-sigs#7842

This fix should be removed in the future if the kubernetes/kubernetes#83242 is resolved.

Signed-off-by: rtsp <[email protected]>
  • Loading branch information
rtsp authored and LuckySB committed Oct 23, 2021
1 parent 37873c6 commit 35754c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
command: "{{ bin_dir }}/kubectl wait po --namespace={{ cert_manager_namespace }} --selector app=webhook --for=condition=Ready --timeout=600s"
register: cert_manager_webhook_pods_ready
when: inventory_hostname == groups['kube_control_plane'][0]
until: cert_manager_webhook_pods_ready is succeeded
retries: 30
delay: 10

- name: Cert Manager | Create ClusterIssuer manifest
template:
Expand Down

0 comments on commit 35754c5

Please sign in to comment.