Last active
September 25, 2019 10:55
Delete stuck containership K8s resources
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 authorizationrolebinding.auth.containership.io \ | |
| tail -n +2 | awk '{ print $1 }' | while read x; do | |
kubectl get -o yaml authorizationrolebinding.auth.containership.io/$x -o json | jq '.metadata.finalizers=[]' \ | |
| kubectl apply -f -; | |
done | |
kubectl get authorizationrole.auth.containership.io \ | |
| tail -n +2 | awk '{ print $1 }' | while read x; do | |
kubectl get -o yaml authorizationrole.auth.containership.io/$x -o json | jq '.metadata.finalizers=[]' \ | |
| kubectl apply -f -; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment