k8s retry delete during cleanup

This commit is contained in:
Frostebite 2020-08-22 19:03:22 +01:00 committed by GitHub
parent 67b76584b8
commit 92cfb31622
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,5 +9,5 @@ then
exit 0
else
echo "delete cluster"
gcloud container clusters delete $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT --quiet
retry -s 15 -t 5 -v 'gcloud container clusters delete $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT --quiet'
fi