Created
March 9, 2020 07:37
-
-
Save jenting/530f5344ea83d4c35e99b52adcd56164 to your computer and use it in GitHub Desktop.
patch pv/pvc 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
kubectl get pv | tail -n+2 | awk '{print $1}' | xargs -I{} kubectl patch pv {} -p '{"metadata":{"finalizers": null}}' | |
kubectl get pvc | tail -n+2 | awk '{print $1}' | xargs -I{} kubectl patch pvc {} -p '{"metadata":{"finalizers": null}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ref to kubernetes/kubernetes#77258