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

Set default Che secret name in Che server config map if tlsSecretName is not specified in CR #194

Merged
merged 1 commit into from
Mar 13, 2020

Conversation

mmorhun
Copy link
Contributor

@mmorhun mmorhun commented Mar 13, 2020

Signed-off-by: Mykola Morhun mmorhun@redhat.com

What does this PR do?

Sets default Che TLS secret name in Che config map if Che CR doesn't specify it when TLS is turned on.

Referenced issues

eclipse-che/che#16280

… is not specified in CR

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
@mmorhun
Copy link
Contributor Author

mmorhun commented Mar 13, 2020

[test]

@@ -128,6 +128,9 @@ func GetConfigMapData(cr *orgv1.CheCluster) (cheEnv map[string]string) {

ingressDomain := cr.Spec.K8s.IngressDomain
tlsSecretName := cr.Spec.K8s.TlsSecretName
if tlsSupport && tlsSecretName == "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

len(tlsSecretName) < 1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the benefit of len(tlsSecretName) < 1 over tlsSecretName == ""?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no benefits)

@mmorhun mmorhun merged commit 896d651 into master Mar 13, 2020
@mmorhun mmorhun deleted the che-16280-3 branch March 13, 2020 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants