Browse Source

Merge pull request #7855 from vrutkovs/wait-for-pod-complete

wait_for_pod: wait for deployment to be Complete
Vadim Rutkovsky 7 years ago
parent
commit
893641e041
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"