Helm Error: cannot re-use a name that is still in use

cannot re-use a name that is still in use

This happens when the secrets of the previous failed release are still existing in Kubernates. We need to remove those in-order to fix the error.

Step1: Find the secret corresponding to the deployment.

#kubectl -n NAMESPACE get secrets

Where NAMESPACE need to be replaced with the name of the required namespace.

Step2: Delete the corresponding secret.

#kubectl -n NAMESPACE delete secret SECRET

Where NAMESPACE need to be replaced with the name of the required namespace and SECRET with the name of the required secret.

That's all…