Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rendered manifests contain a resource that already exists. Could not get information about the resource: resource name may not be empty

I Installed Helm 3 on my windows laptop where i have kube config configured as well. But when i try to install my local helm chart, i;m getting the below error.

Error: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource: resource name may not be empty

I tried helm ls --all --all-namespaces but i don't see anything. Please help me!

like image 254
Skanda Bhatt Avatar asked Jun 10 '20 17:06

Skanda Bhatt


People also ask

How can I tell if helm is installed?

After the helm chart installation is complete, you can verify the installation. Note: Add --cleanup to the command to delete the testing pods after the command is run. You can also check the deployed Kubernetes resources by running one of the following commands: oc get all -n {namespace}


2 Answers

I think you have to check if you left off any resource without - name:

like image 120
Arsen Avatar answered Oct 29 '22 17:10

Arsen


I had the same issue. In values.yaml I had

name:

and in deployment.yaml I tried to access this "name" via {{ .Values.name }}. I found out, that {{ .Values.name }} doesn't work for me at all. I had to use {{ Chart.Name }} in deployment.yaml as the built-in object. ref: https://helm.sh/docs/chart_template_guide/builtin_objects/

If you want to access the "name", you can put it into values.yaml for example like this:

something: name:

and them access it from deployment.yaml (for example) like {{ .Values.something.name }}

like image 35
Jonáš Kowalczyk Avatar answered Oct 29 '22 15:10

Jonáš Kowalczyk