UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit d8dea94c authored by Matt Dutton's avatar Matt Dutton Committed by runyontr
Browse files

Add hack script for removing NS finalizer for stuck namespaces

parent 087284f1
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
NS=$1
shift
kubectl get ns $NS -o json | jq '.spec.finalizers = []' | kubectl replace --raw "/api/v1/namespaces/$NS/finalize" -f -
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment