Skip to content

Commit

Permalink
fix: cleanup also post test_kind.sh (#11886)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored Feb 11, 2025
1 parent c6cc3d3 commit 50cdb15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spartan/scripts/test_kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50cdb15

Please sign in to comment.