Created
October 3, 2019 03:42
-
-
Save stephonchen/126019ebf2cf8dd604eca5fba8a34249 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get namespace annoying-namespace-to-delete -o json > tmp.json | |
# Edit tmp.json, and remove contents in finalizers with empty array [] | |
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json https://kubernetes-cluster-ip/api/v1/namespaces/annoying-namespace-to-delete/finalize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment