aquafire / remove_cr.sh

Last active 6 months ago

Like 0

aquafire revised this gist 1 year ago · e3454a3

No changes

aquafire revised this gist 1 year ago · af97bf5

1 file changed, 1 insertion

remove_cr.sh (file created)
@@ -0,0 +1 @@
1 + kubectl get <plural для CR> -n <пространство имен> -o json | jq -r '.items[] | .metadata.name' | xargs -I {} kubectl patch <plural для CR> {} -n <пространство имен>--type='json' -p='[{"op": "remove", "path": "/metadata/finalizers"}]'