Skip to content

Commit 146a068

Browse files
abaysdasm
authored andcommitted
Retry OCP CSR approval
1 parent 82b65a0 commit 146a068

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

roles/openshift_adm/tasks/wait_for_cluster.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,15 @@
4949
- name: Check for pending certificate approval.
5050
when:
5151
- _openshift_adm_check_cert_approve | default(false) | bool
52+
register: _approve_csr
5253
approve_csr:
5354
k8s_config: "{{ cifmw_openshift_kubeconfig }}"
55+
retries: 30
56+
delay: 10
57+
until:
58+
- _approve_csr is defined
59+
- _approve_csr.rc is defined
60+
- _approve_csr.rc == 0
5461

5562
- name: Wait until the OpenShift cluster is stable.
5663
environment:

0 commit comments

Comments
 (0)