From 9c90a030bd763ea95defd2db2c5f9a8bf2d83a19 Mon Sep 17 00:00:00 2001 From: Karishma Chawla Date: Mon, 12 May 2025 14:46:56 -0700 Subject: [PATCH] LRT: Add test namespaces to cleanup script Signed-off-by: Karishma Chawla --- .github/scripts/cleanup-long-running-cluster.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/scripts/cleanup-long-running-cluster.sh b/.github/scripts/cleanup-long-running-cluster.sh index e9d9e79e831..4ef6443c337 100755 --- a/.github/scripts/cleanup-long-running-cluster.sh +++ b/.github/scripts/cleanup-long-running-cluster.sh @@ -49,13 +49,16 @@ fi # Delete all test namespaces. echo "delete all test namespaces" -namespaces=$(kubectl get namespace | - grep -E '^kubernetes-interop-tutorial.*|^corerp.*|^test.*|^default-.*|^radiusfunctionaltestbucket.*|^radius-test.*|^kubernetes-cli.*|^dpsb-.*|^dsrp-.*|^azstorage-workload.*|^dapr-serviceinvocation|^daprrp-rs-.*|^dapr-sts-.*|^mynamespace.*|^demo.*|^tutorial-demo.*|^ms.+' | - awk '{print $1}') +namespaces=$(kubectl get namespace | grep -E '^kubernetes-interop-tutorial.*|^corerp.*|^test.*|^default-.*|^radiusfunctionaltestbucket.*|^radius-test.*|^kubernetes-cli.*|^dpsb-.*|^dsrp-.*|'\ + '^azstorage-workload.*|^dapr-serviceinvocation|^daprrp-rs-.*|^dapr-sts-.*|^mynamespace.*|^demo.*|^tutorial-demo.*|^ms.+|^dt-.*|'\ + '^daprrp-env-.*|^dcs-.*|^dynamicrp-.*|^flux-basic.*|^flux-complex.*|^invalid-env.*|^tutorial|'\ + '^udt-externalresource.*|^udt-externalresource-.*|^usertypealpha-.*' | awk '{print $1}') + for ns in $namespaces; do if [ -z "$ns" ]; then break fi echo "deleting namespaces: $ns" kubectl delete namespace $ns --ignore-not-found=true + echo "namespace $ns deleted successfully" done