Created
May 2, 2020 11:43
-
-
Save hajowieland/f8160c053103825c1c5c4c64b0e2e980 to your computer and use it in GitHub Desktop.
kubectl delete crd hanging / blocked on deletion (finalizers)
This file contains hidden or 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
#!/bin/bash | |
CRD=$1 | |
kubectl patch crd/$CRD -p '{"metadata":{"finalizers":[]}}' --type=merge | |
kubectl delete crd/$CRD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment