this repo has no description
1set -eou pipefail
2namespace=$1
3if [ -z "$namespace" ]
4then
5 echo "This script requires a namespace argument input. None found. Exiting."
6 exit 1
7fi
8kubectl get namespace $namespace -o json | jq '.spec = {"finalizers":[]}' > rknf_tmp.json
9kubectl proxy &
10sleep 5
11curl -H "Content-Type: application/json" -X PUT --data-binary @rknf_tmp.json http://localhost:8001/api/v1/namespaces/$namespace/finalize
12pkill -9 -f "kubectl proxy"
13rm rknf_tmp.json