Created
January 28, 2021 12:56
-
-
Save sckn/8b52a486cb467f71b519d7de376b4d11 to your computer and use it in GitHub Desktop.
This file contains 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 ns | grep Terminating|cut -d " " -f 1|while read NSNAME; do echo $NSNAME;kubectl get namespace $NSNAME -o json|jq ".spec.finalizers = []"|kubectl replace --raw "/api/v1/namespaces/$NSNAME/finalize" -f -;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment