We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe something like this? https://medium.com/pareture/script-to-force-remove-kubernetes-namespace-finalizer-57b72bd9460d
The text was updated successfully, but these errors were encountered:
I managed to delete all pending deletion resources blocked by a finalizer using this script:
finalizers | tail -n +2 | while read -r line; do namespace=$(echo "$line" | awk '{print $1}') name=$(echo "$line" | awk '{print $2}') kind=$(echo "$line" | awk '{print $4}') kubectl patch "$kind" "$name" -n "$namespace" --type=json -p='[{"op": "remove", "path": "/metadata/finalizers"}]' done
Sorry, something went wrong.
finalizers | awk '{print "kubectl patch -n " $1 " " $4 "/" $2 " --type json --patch='\''[ { \"op\": \"remove\", \"path\": \"/metadata/finalizers\" } ]'\''" }' | sh -x
No branches or pull requests
Maybe something like this? https://medium.com/pareture/script-to-force-remove-kubernetes-namespace-finalizer-57b72bd9460d
The text was updated successfully, but these errors were encountered: