Explorar el Código

wait_for_pod: wait for deployment to be Complete

This ensures the deployment won't stuck in 'Pending' and move further
Vadim Rutkovsky hace 7 años
padre
commit
3587176776
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"