Cleanup root dir (#133)
* Remove package-lock.json * Move bootstrap logic into action folder * Fix relative path * update index after rebase * Shell files are executable * Update yarn.lock * Update yarn.lock
This commit is contained in:
13
action/bootstrapper/ReleaseLockAndAttemptShutdown.sh
Executable file
13
action/bootstrapper/ReleaseLockAndAttemptShutdown.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
kubectl delete ns ns-unity-builder-$NSID
|
||||
|
||||
# do any unity-builder namespaces remain?
|
||||
namespaceCount=$(kubectl get ns --output json | jq ".items | .[] | select(.metadata.labels.app == \"unity-builder\") | select(.status.phase != \"TERMINATING\")" | jq -s "length")
|
||||
echo $namespaceCount
|
||||
if [ "$namespaceCount" != "0" ]
|
||||
then
|
||||
echo "let next cluster delete"
|
||||
exit 0
|
||||
else
|
||||
echo "delete cluster"
|
||||
gcloud container clusters delete $GKE_CLUSTER --zone $GKE_ZONE --project $GKE_PROJECT --quiet
|
||||
fi
|
||||
Reference in New Issue
Block a user