diff --git a/chart/environment-values/cleanup.sh b/chart/environment-values/cleanup.sh index 1532b73..499b02e 100755 --- a/chart/environment-values/cleanup.sh +++ b/chart/environment-values/cleanup.sh @@ -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 \ No newline at end of file +if [[ "$1" == "full" ]] ; then + sleep 30 + kubectl delete ns openwifi-"$NAMESPACE" +fi +exit 0