소스 검색

wait_for_pod: wait for deployment to be Complete

This ensures the deployment won't stuck in 'Pending' and move further
Vadim Rutkovsky 7 년 전
부모
커밋
3587176776
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"