From 7dc87e5fe8348cc52fa8d02c669be01cef2cc306 Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Fri, 21 Sep 2018 12:47:49 -0400 Subject: [PATCH] Adjust timeout flags for Alpine specific version --- deploy/kubernetes/atst-update-deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/kubernetes/atst-update-deploy.sh b/deploy/kubernetes/atst-update-deploy.sh index a95fb262..937db112 100755 --- a/deploy/kubernetes/atst-update-deploy.sh +++ b/deploy/kubernetes/atst-update-deploy.sh @@ -9,7 +9,7 @@ set -o nounset # set -o xtrace # Config -MAX_DEPLOY_WAIT='5m' +MAX_DEPLOY_WAIT='300' # Remove the K8S CA file when the script exits function cleanup { @@ -42,7 +42,7 @@ kubectl config current-context kubectl -n atat set image deployment.apps/atst atst="${ATAT_DOCKER_REGISTRY_URL}/${PROD_IMAGE_NAME}:${GIT_SHA}" # Wait for deployment to finish -if ! timeout -s 2 "${MAX_DEPLOY_WAIT}" kubectl -n atat rollout status deployment/atst +if ! timeout -t "${MAX_DEPLOY_WAIT}" -s INT kubectl -n atat rollout status deployment/atst then # Deploy did not finish before max wait time; abort and rollback the deploy kubectl -n atat rollout undo deployment/atst