Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm chart value treated as a number #1896

Open
gecube opened this issue Apr 9, 2024 · 0 comments
Open

Helm chart value treated as a number #1896

gecube opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation helm Related to helm and app-catalog

Comments

@gecube
Copy link

gecube commented Apr 9, 2024

Hello!

I am trying to install Headlamp like a helm chart with a custom Kubernetes endpoint.
So I prepared such a values file:

...
    env:
    - name: KUBERNETES_SERVICE_HOST
      value: "kube-oidc-proxy.console.svc.cluster.local."
    - name: KUBERNETES_SERVICE_PORT
      value: 443
...

and I am getting the next error from FluxCD which is my deployment system:

headlamp            	helmrelease/headlamp            	        	False    	False	Helm install failed for release headlamp/headlamp with chart [email protected]: 1 error occurred:                                                                                 	
                    	                                	        	         	     		* Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal number into Go struct field EnvVar.spec.template.spec.containers.env.value of type string	
                    	                                	        	         	     		*

So it's definitely not an issue with the FluxCD itself. Also I want to mention that I can rewrite the values in such a way:

...
    env:
    - name: KUBERNETES_SERVICE_HOST
      value: "kube-oidc-proxy.console.svc.cluster.local."
    - name: KUBERNETES_SERVICE_PORT
      value: "443"
...

and it looks like that solves the issue, but I am really goind mad and crazy why I need to quote the port number.

So I am kindly asking to think about how to

  • workaround this issue
  • make better examples and/or documentation for headlamp
@illume illume added helm Related to helm and app-catalog bug Something isn't working documentation Improvements or additions to documentation labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation helm Related to helm and app-catalog
Projects
None yet
Development

No branches or pull requests

2 participants