From 1cb68ecdaf0d8f6800e644e0f13408549e424a55 Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Thu, 16 Aug 2018 14:18:55 -0400 Subject: [PATCH] Wait for deployment to roll out before finishing --- deploy/kubernetes/atst-update-deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/kubernetes/atst-update-deploy.sh b/deploy/kubernetes/atst-update-deploy.sh index 51219992..f83bbe01 100755 --- a/deploy/kubernetes/atst-update-deploy.sh +++ b/deploy/kubernetes/atst-update-deploy.sh @@ -30,6 +30,9 @@ kubectl config current-context # Update the ATST deployment kubectl -n atat set image deployment.apps/atst atst="${ATAT_DOCKER_REGISTRY_URL}/${PROD_IMAGE_NAME}:${GIT_SHA}" +# Wait for deployment to finish +kubectl -n atat rollout status deployment/atst + # Remove the K8S CA file when the script exits function cleanup { printf "Cleaning up...\n"