Che: Helm install validation failed

Created on 28 May 2019  路  9Comments  路  Source: eclipse/che

Description

Not sure what happened, Helm installation worked last week and now it doesn't:

helm upgrade --install che --namespace che -f ./values/multi-user.yaml ./
Release "che" does not exist. Installing it now.
Error: validation failed: error validating "": error validating data: [unknown object type "nil" in ConfigMap.data.CHE_INFRA_KUBERNETES_NAMESPACE, unknown object type "nil" in ConfigMap.data.CHE_LOGGER_CONFIG, unknown object type "nil" in ConfigMap.data.CHE_OAUTH_GITHUB_CLIENTID, unknown object type "nil" in ConfigMap.data.CHE_OAUTH_GITHUB_CLIENTSECRET, unknown object type "nil" in ConfigMap.data.CHE_WORKSPACE_HTTPS__PROXY, unknown object type "nil" in ConfigMap.data.CHE_WORKSPACE_HTTP__PROXY, unknown object type "nil" in ConfigMap.data.CHE_WORKSPACE_NO__PROXY]

I'm using default values.yaml straight from the repository. I don't want to use anything GitHub related in my Che installation.

Reproduction Steps

git clone https://github.com/eclipse/che.git
cd che/deploy/kubernetes/helm/che
git checkout 6.19.4

Install Helm and Tiller according to: https://www.eclipse.org/che/docs/che-6/kubernetes-multi-user.html and then:

helm dependency update
helm upgrade --install che --namespace che -f ./values/multi-user.yaml ./

OS and version:
Helm client and server: v2.14.0
Eclipse Che tag 6.19.4

Diagnostics:

kinbug

All 9 comments

@pasmon This PR should fix the issue you faced https://github.com/eclipse/che/pull/13425

@pasmon it's related to https://github.com/helm/helm/issues/5750 . (helm 2.13.1 --> 2.14.0)
it's fixed in master (just merged my PR)

Well that was fast, thanks guys!

Ahem :disappointed:

helm upgrade --install che --namespace che -f ./values/multi-user.yaml ./                                                                               
Release "che" does not exist. Installing it now.
Error: validation failed: error validating "": error validating data: unknown object type "nil" in ConfigMap.data.CHE_INFRA_KUBERNETES_NAMESPACE

I modified cheWorkspacesNamespace in values.yaml, and then I get this:

helm upgrade --install che --namespace che -f ./values/multi-user.yaml ./
Release "che" does not exist. Installing it now.
Error: validation failed: error validating "": error validating data: ValidationError(Deployment.spec): unknown field "test" in io.k8s.api.extensions.v1beta1.DeploymentSpec

@pasmon : I backported changes used by chectl, probably you're using other templates than chectl, I will investigate

@benoitf Yes, I'm using Rancher deployed Kubernetes on top of OpenStack, no chectl used anywhere.

That fixes the first issue, so no need to define cheWorkspacesNamespace anymore. Second issue still exists.

After helm dependency update I didn't get the second issue, installation was successful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vanzhiganov picture vanzhiganov  路  3Comments

redeagle84 picture redeagle84  路  3Comments

sleshchenko picture sleshchenko  路  3Comments

InterestedInTechAndCake picture InterestedInTechAndCake  路  3Comments

skabashnyuk picture skabashnyuk  路  3Comments