Helm has no deployed releases
Error
Helm upgrade failed for release my-cluster/my-cluster-namespace
with chart Helm-create-namespace@0.1.0+9359778f813b:
"my-cluster-namespace" has no deployed releases
Cause
The git repository named my-repo
contains the workload cluster named my-cluster
.
The helm release named my-cluster-namespace
in namespace my-repo
is trying to be installed but there is an issue.
The issue is that a secret indicate that the helm chart has been installed at least once but the helm chart is not able to retrieve the previous installation.
The secret name is : sh.helm.release.v1.my-cluster-namespace.v1
Solution
The solution is to delete the secret.
kubectl delete secret -n my-repo sh.helm.release.v1.my-cluster-namespace.v1