kubectl -n <ns> get pod -l app=<name> -o 'jsonpath={.items[0].metadata.name}'
kubectl get namespace <ns> -o json \
| tr -d "\n" | sed "s/\"finalizers\": \[[^]]\+\]/\"finalizers\": []/" \
| kubectl replace --raw /api/v1/namespaces/<ns>/finalize -f -