Browse Source

wait_for_pod: wait for deployment to be Complete

This ensures the deployment won't stuck in 'Pending' and move further
Vadim Rutkovsky 7 years ago
parent
commit
3587176776
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_hosted/tasks/wait_for_pod.yml

+ 1 - 1
roles/openshift_hosted/tasks/wait_for_pod.yml

@@ -27,7 +27,7 @@
              --config {{ openshift_master_config_dir }}/admin.kubeconfig \
              -o jsonpath='{ .metadata.annotations.openshift\.io/deployment\.phase }'
     register: openshift_hosted_wfp_rc_phase
-    until: "'Running' not in openshift_hosted_wfp_rc_phase.stdout"
+    until: "'Complete' in openshift_hosted_wfp_rc_phase.stdout"
     delay: 10
     retries: 60
     failed_when: "'Failed' in openshift_hosted_wfp_rc_phase.stdout"