UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Add hack script for removing NS finalizer for stuck namespaces

Merged Matt Dutton requested to merge feature/remove-ns-finalizer into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
#!/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
Loading