Skip to content

Commit

Permalink
Temporarily skip deleting beam-performancetests-singlestoreio-1266137…
Browse files Browse the repository at this point in the history
…3176 (#33545)

* Add printing to k8s script

* Temporarily skip bad namespace

* Update stale_k8s_workload_cleaner.sh

* Add context

* Update for all singlestore io instances
  • Loading branch information
damccorm authored Jan 9, 2025
1 parent 6b3783f commit c6f8aae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .test-infra/tools/stale_k8s_workload_cleaner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function should_teardown() {
gcloud container clusters get-credentials io-datastores --zone us-central1-a --project apache-beam-testing

while read NAME STATUS AGE; do
if [[ $NAME =~ ^beam-.+(test|-it) ]] && should_teardown $AGE; then
# Regex has temporary workaround to avoid trying to delete beam-performancetests-singlestoreio-* to avoid getting stuck in a terminal state
# See https://github.com/apache/beam/pull/33545 for context.
# This may be safe to remove if https://cloud.google.com/knowledge/kb/deleted-namespace-remains-in-terminating-status-000004867 has been resolved, just try it before checking in :)
if [[ $NAME =~ ^beam-.+(test|-it)(?!s-singlestoreio) ]] && should_teardown $AGE; then
kubectl delete namespace $NAME
fi
done < <( kubectl get namespaces --context=gke_${PROJECT}_${LOCATION}_${CLUSTER} )

0 comments on commit c6f8aae

Please sign in to comment.