-
Notifications
You must be signed in to change notification settings - Fork 88
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
Implement ability to use default ingress TLS certificate #508
Conversation
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
...olm-catalog/eclipse-che-preview-kubernetes/manifests/che-operator.clusterserviceversion.yaml
Show resolved
Hide resolved
Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
if instance.Spec.K8s.TlsSecretName != "" { | ||
// Self-signed certificate should be created to secure Che ingresses | ||
result, err := deploy.K8sHandleCheTLSSecrets(deployContext) | ||
if result.Requeue || result.RequeueAfter > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply.
If err {
logrus.Error(...)
}
return result, err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it will cause unexpected return if operator needs to continue
return true, nil | ||
} | ||
// TLS secret found, consider it as commonly trusted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the case when self-signed-certificate secret exists but che-tls does not? How do we handle that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Operator will delete self-signed-certificate
secret and will generate new pair.
Signed-off-by: Mykola Morhun mmorhun@redhat.com
What does this PR do
Adds ability to tell Che operator to use default ingress TLS certificate to secure Che endpoints.
To use default ingress certificate, field
k8s.tlsSecretName
should be empty string or absent.Which isseus this PR fixes
eclipse-che/che#18079
How to test
minikube addons enable ingress
Automation script
where
default-secret-patch.yaml
is: