diff --git a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml index 0d62e4b3ee2cc..4f53db0d118da 100644 --- a/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml +++ b/ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml @@ -153,11 +153,13 @@ objects: i=0 MAX_RETRIES=10 - until oc wait "${ROUTER_DEPLOYMENT}" -n "${ROUTER_NAMESPACE}" --for condition=available --timeout=10m || [ $i -eq $MAX_RETRIES ]; do + wait_expiry_ts="$(($(date +%s) + 90))" + until oc --request-timeout=80s rollout status "${ROUTER_DEPLOYMENT}" -n "${ROUTER_NAMESPACE}" -w; do i=$((i+1)) - [ $i -eq $MAX_RETRIES ] && echo "timeout waiting for router to be available" && exit 1 - echo "error deploy/router did not come up" - sleep 60 + [ $i -eq $MAX_RETRIES ] && echo "timeout waiting for ${ROUTER_NAMESPACE}/${ROUTER_DEPLOYMENT} to be available" && exit 1 + echo "error ${ROUTER_NAMESPACE}/${ROUTER_DEPLOYMENT} did not come up" + sleep "$((wait_expiry_ts - $(date +%s)))" + wait_expiry_ts="$(($(date +%s) + 90))" done # set up cloud-provider-specific env vars