Last active
March 20, 2024 02:11
-
-
Save mrclrchtr/c85eb1322c6a7a486139c858883f922d to your computer and use it in GitHub Desktop.
Remove finalizers and delete CRDs
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
kubectl get crd | \ | |
grep longhorn | \ | |
perl -anle 'print $F[0]' | \ | |
while read -r crd ; | |
do | |
kubectl patch crd "$crd" -p '{"metadata":{"finalizers":null}}'; | |
kubectl delete crd "$crd"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment