remove kubernetes service-catalog finalizer with cli
kubectl patch
is one way. You can also use a jq
/kubectl
oneliner.
kubectl get ServiceInstance <service-instance-name> -o=json | \jq '.metadata.finalizers = null' | kubectl apply -f -
I'm not sure how this works with the ServiceInstance and ServiceBinding specifically, but you can use kubectl patch to update objects in place. As an example:
kubectl patch ServiceInstance <service-instance-name> -p '{"metadata":{"finalizers":null}}' --type=merge