Skip to content

Commit 81e6b4d

Browse files
committed
👷 ci: avoid being stuck during cluster deletion
1 parent 8d45abe commit 81e6b4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎github_actions/deploy_cluster/cleanup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ cluster_name=`echo $RUNNER_NAME|tr '[:upper:]' '[:lower:]'|sed -r 's/-[a-z0-9]+$
1515
kubeconfig=`/.venv/bin/oks-cli cluster kubeconfig --cluster-name $cluster_name --print-path`
1616
export KUBECONFIG=$kubeconfig
1717

18-
kubectl delete ns $OSC_CLUSTER_NAME
18+
# do not wait if stuck, frieza will purge everything
19+
kubectl delete ns $OSC_CLUSTER_NAME --timeout 2m || /bin/true

0 commit comments

Comments
 (0)