Skip to content

Commit add25f9

Browse files
authored
Wait for the deployment to create before status check (#43)
1 parent aab4e97 commit add25f9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ansible/roles/bootstrap/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
shell: |
4343
oc apply -f {{ dt_path }}/subscriptions.yaml
4444
45+
- name: Wait for observability operator deployment to be created
46+
shell: |
47+
oc get deployments/observability-operator -n openshift-operators
48+
register: obs_deploy
49+
until: obs_deploy.rc == 0
50+
retries: 30
51+
delay: 10
52+
4553
- name: Wait for observability operator to be available
4654
shell: |
4755
oc wait deployments/observability-operator --for condition=Available --timeout=300s -n openshift-operators

0 commit comments

Comments
 (0)