From 50cdb15c2664a8786336654be402cf8b7b56117b Mon Sep 17 00:00:00 2001 From: ludamad Date: Tue, 11 Feb 2025 11:09:57 +0000 Subject: [PATCH] fix: cleanup also post test_kind.sh (#11886) --- spartan/scripts/test_kind.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spartan/scripts/test_kind.sh b/spartan/scripts/test_kind.sh index d9ebdacc50a..60f90c339d3 100755 --- a/spartan/scripts/test_kind.sh +++ b/spartan/scripts/test_kind.sh @@ -67,6 +67,8 @@ function cleanup() { if [ "$cleanup_cluster" = "true" ]; then kind delete cluster || true + elif [ "$fresh_install" = "true" ]; then + kubectl delete namespace "$namespace" --ignore-not-found=true --wait=true --now --timeout=10m &>/dev/null || true fi } trap cleanup SIGINT SIGTERM EXIT