actually delete clusters in new CI job to remove orphaned GKE clusters

This commit is contained in:
Ryan Richard
2024-12-23 11:18:56 -08:00
parent 171ec457f1
commit cbea626d96

View File

@@ -58,7 +58,7 @@ if [[ ${#clusters_to_remove[@]} -eq 0 ]]; then
echo "No old orphaned GKE clusters found to remove."
else
echo "Removing ${#clusters_to_remove[@]} GKE clusters(s) which are older than $hours_ago_to_delete hours in $CLUSTER_ZONE: ${clusters_to_remove[*]} ..."
echo Would run command: gcloud container clusters delete --zone "${CLUSTER_ZONE}" --quiet ${clusters_to_remove[*]}
gcloud container clusters delete --zone "${CLUSTER_ZONE}" --quiet ${clusters_to_remove[*]}
fi
echo