Skip to content

Commit

Permalink
Don't always cleanup the namespace unless called with full argument
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Schafer <[email protected]>
  • Loading branch information
Carsten Schafer authored and Carsten Schafer committed Feb 13, 2024
1 parent 0ee5ea9 commit 70c8886
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chart/environment-values/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
[ -z "$NAMESPACE" ] && echo "No NAMESPACE set" && exit 1
helm -n openwifi-"$NAMESPACE" delete tip-openwifi
sleep 30
kubectl delete ns openwifi-"$NAMESPACE"
exit 0
if [[ "$1" == "full" ]] ; then
sleep 30
kubectl delete ns openwifi-"$NAMESPACE"
fi
exit 0

0 comments on commit 70c8886

Please sign in to comment.