Skip to content

Commit

Permalink
getting rollout status
Browse files Browse the repository at this point in the history
  • Loading branch information
smritidahal653 committed Sep 20, 2023
1 parent 50cdec8 commit 9b746e3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion hack/e2e/aks-addon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,14 @@ kubectl create configmap test-vars -n kube-system \

sed -e "s|TEST_INIT_IMAGE|$IMG_URL/$INIT_IMG_REPO:$INIT_IMG_TAG|g" -e "s|TEST_IMAGE|$IMG_URL/$IMG_REPO:$IMG_TAG|g" deploy/deployment.yaml | kubectl apply -n kube-system -f -

kubectl wait --for=condition=available deploy "virtual-kubelet-azure-aci" -n kube-system --timeout=300s
# Check deployment rollout status every 30 seconds (max 5 minutes) until complete.
ATTEMPTS=0
ROLLOUT_STATUS_CMD="kubectl rollout status deployment/virtual-kubelet-azure-aci -n kube-system"
until $ROLLOUT_STATUS_CMD || [ $ATTEMPTS -eq 10 ]; do
$ROLLOUT_STATUS_CMD
ATTEMPTS=$((attempts + 1))
sleep 30
done

while true; do
kubectl get node "$TEST_NODE_NAME" &> /dev/null && break
Expand Down

0 comments on commit 9b746e3

Please sign in to comment.