Gitpod: [helm] 'can't give argument to non-function not' in minio/templates/deployment.yaml with Go >= 1.14.0

Created on 25 Aug 2020  路  6Comments  路  Source: gitpod-io/gitpod

I'm trying to stand up a self-hosted instance on my own hardware using minikube to start the cluster. I have filled in the values.yaml file but when I try to start the cluster it consistently fails with:
Error: template: gitpod-selfhosted/charts/gitpod/charts/minio/templates/deployment.yaml:192:20: executing "gitpod-selfhosted/charts/gitpod/charts/minio/templates/deployment.yaml" at <(not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled) (not .Values.b2gateway.enabled)>: can't give argument to non-function not .Values.gcsgateway.enabled

Any thoughts or suggestions? I'm trying to run it on an up to date CentOS 7 box with the latest release of Kubernetes.

bug self-hosted

Most helpful comment

All 6 comments

This is an issue with the helm templates when using newer helm resp. golang (Go >= 1.14.0). See:

I quick fix would downgrade your Go or patch the helm charts as described in the link above.

@corneliusludmann Just curious if you have any plans to merge the commit associated here

hi, me too, i am in WSL2 --> ubuntu 16.04, docker-ce 19.03, (kubectl 1.19.4,GoVersion:"go1.15.2"), (helm 3.4.1, go1.14.11),
when i do

helm repo add charts.gitpod.io https://charts.gitpod.io
helm dep update
helm upgrade --install $(for i in $(cat configuration.txt); do echo -e "-f $i"; done) gitpod .

hit the fault:

Release "gitpod" does not exist. Installing it now.
Error: template: gitpod-selfhosted/charts/gitpod/charts/minio/templates/deployment.yaml:192:20: executing "gitpod-selfhosted/charts/gitpod/charts/minio/templates/deployment.yaml" at <(not .Values.gcsgateway.enabled) (not .Values.azuregateway.enabled) (not .Values.s3gateway.enabled) (not .Values.b2gateway.enabled)>: can't give argument to non-function not .Values.gcsgateway.enabled

I also met the same problem with the latest gitpod, gitpod uses low version of minio

I did a quick check, @corneliusludmann 's change is working , https://github.com/gitpod-io/gitpod/blob/9c068480a4cbfb8dd5fa5493f0da45b9658c3749/chart/requirements.yaml , but seems it's not merged into master branch so far

Was this page helpful?
0 / 5 - 0 ratings