Created
March 31, 2020 09:22
-
-
Save dchaumond/bbebc4371fee8a458d7e3b5edfbf3679 to your computer and use it in GitHub Desktop.
Unlock namespaces stucked in Terminating mode, remove finalizers
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
#!/usr/bin/env bash | |
namespace=$1 | |
kubectl get ns $namespace -o json | jq '.spec = {"finalizers":[]}' | kubectl replace --raw /api/v1/namespaces/$namespace/finalize -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment