From b69ea10df0e003554e4a70a8448a0119f1b59a0c Mon Sep 17 00:00:00 2001 From: Fu Zi Xiang Date: Mon, 25 Dec 2023 19:33:20 +0800 Subject: [PATCH] fix: wait for pods to be ready before deletion - 2 --- .github/workflows/deploy.test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/deploy.test.yml b/.github/workflows/deploy.test.yml index a22ab3ae..07d96610 100644 --- a/.github/workflows/deploy.test.yml +++ b/.github/workflows/deploy.test.yml @@ -62,13 +62,10 @@ jobs: envsubst < kubernetes/templates/admin-frontend-deployment.yaml | tee deployed/admin-frontend-deployment.yaml | kubectl apply -f - envsubst < kubernetes/templates/admin-frontend-service.yaml | tee deployed/admin-frontend-service.yaml | kubectl apply -f - - # wait until - kubectl get pods --field-selector=status.phase!=Running | grep -v "STATUS" | wc -l - # wait for all pods to be ready tried=0 while true; do - if [ $tried -eq 5 ]; then + if [ $tried -eq 10 ]; then echo "Waited too long for all pods to be ready" exit 1 fi