Custom resource with Finalizer does not get removed during Helm uninstall

4/15/2020

I have a Helm chart that contains several deployments and a custom resource. The custom resource has a finalizer that is dependent on the deployment to remove. When helm uninstall is called, the deployment is removed before the removal of the custom resource completes leaving it orphaned and all of the downstream resources that we supposed to be cleaned up by it's removal.

Is there a way to force the removal of the resource first, maybe through the hook system? Or would it be better to move the custom resource out to it's own chart and then call uninstall in order there?

-- BenH
kubernetes
kubernetes-helm

0 Answers