This happens only with CRDs. By deleting the CRD object, it gets in state were the objects owned by it were not deleted.
Temporary solution is to edit namespaces and empty finalisers.
Perform following:
Delete namespace
✗ make helm-delet
Dump namespace to json
kubectl get namespace go-api-boilerplate -o json > tmp.json
Edit tmp.json and remove"kubernetes" from finalisers
Run proxy
kubectl proxy
Upload edited json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @tmp.json http://127.0.0.1:8001/api/v1/namespaces/\go-api-boilerplate/finalize
If you are running newest version of k8s instead of doing all steps you can just run one command as follow:
Deleting namespace will stuck at Terminating state. More info here: https://github.com/kubernetes/kubernetes/issues/60807
This happens only with CRDs. By deleting the CRD object, it gets in state were the objects owned by it were not deleted. Temporary solution is to edit namespaces and empty finalisers.
Perform following:
tmp.json
and remove"kubernetes" fromfinalisers
If you are running newest version of k8s instead of doing all steps you can just run one command as follow:
This way you will not have to spawn a kubectl proxy process and avoid dependency with curl. https://github.com/kubernetes/kubernetes/issues/60807#issuecomment-635399941