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

Installation fails when checluster k8s.tlsSecretName is empty #19052

Closed
l0rd opened this issue Feb 12, 2021 · 0 comments
Closed

Installation fails when checluster k8s.tlsSecretName is empty #19052

l0rd opened this issue Feb 12, 2021 · 0 comments
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@l0rd
Copy link
Contributor

l0rd commented Feb 12, 2021

Describe the bug

Che operator fails to start the Che server if the tlsSecretName is not set or empty.

  "k8s": {
    "tlsSecretName": ""
  }

Che version

nightly

Steps to reproduce

printf "spec:\n  k8s:\n    tlsSecretName: ''\n" > ./checluster-patch.yaml
chectl server:deploy \
      -p minikube --che-operator-cr-patch-yaml=./checluster-patch.yaml

Expected behavior

From the documentation:

If the value is empty or omitted, the default ingress controller certificate will be used.

The relative PR eclipse-che/che-operator#508

Runtime

minikube

minikube version: v1.17.1
commit: 043bdca07e54ab6e4fc0457e3064048f34133d7e
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-14T05:14:17Z", GoVersion:"go1.15.6", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:20:00Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}

Screenshots

image

Environment

macOS

Eclipse Che Logs

Operator logs:

...
time="2021-02-12T10:09:37Z" level=info msg="Custom resource eclipse-che updated"
time="2021-02-12T10:09:37Z" level=info msg="Waiting on config map 'che' to be created"
time="2021-02-12T10:09:37Z" level=error msg=" secret not found"

Additional context

That looks like a regression of #18079

@l0rd l0rd added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator labels Feb 12, 2021
@tolusha tolusha closed this as completed Feb 15, 2021
@tolusha tolusha added this to the 7.27 milestone Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

2 participants