Why removing finalizers with kubectl patch does no work for PVC in Terminating Status

Viewed 25

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.

0 Answers
Related