Skip to content

Instantly share code, notes, and snippets.

@pavel-khritonenko
Last active June 20, 2019 10:57
Show Gist options
  • Save pavel-khritonenko/a9651f68e49a7bab05aeba8e9b35d817 to your computer and use it in GitHub Desktop.
Save pavel-khritonenko/a9651f68e49a7bab05aeba8e9b35d817 to your computer and use it in GitHub Desktop.
How to delete ns in terminating state
NAMESPACE=rook-ceph
kubectl proxy &
kubectl get namespace $NAMESPACE -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE/finalize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment