Trying to automate removing .metadata.finalizers when it's needed:
kubectl -n ${ns} patch pvc $pvcname -p '{"metadata":{"finalizers":[]}}' --type=merge
Checking again with get pvc , but I found it same value.. What i am missing here ?
Note,if i edit the resource directly with kubectl edit , the change takes effect.