Created
October 2, 2022 13:58
-
-
Save toschneck/837d061700338da6243c27e73cb341fa to your computer and use it in GitHub Desktop.
delete kuberenetes finalizer of all crds of group kubermatic
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 | |
for i in $(kubectl get crd | grep kubermatic.k8s.io | awk '{print $1}'); | |
do | |
for j in $(kubectl get $i | awk '{print $1}'); do | |
kubectl patch $i $j --type json --patch='[ { "op": "remove", "path": "/metadata/finalizers" } ]' | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment