Skip to content

Commit

Permalink
Fallback to default Che tls secret only if CR has empty value for it (#…
Browse files Browse the repository at this point in the history
…576)

Signed-off-by: Mykola Morhun <[email protected]>
  • Loading branch information
mmorhun authored Mar 13, 2020
1 parent 938b592 commit a7eb5a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/kube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,9 @@ export class KubeHelper {
yamlCr.spec.auth.openShiftoAuth = flags['os-oauth']
if (flags.tls) {
yamlCr.spec.server.tlsSupport = flags.tls
yamlCr.spec.k8s.tlsSecretName = 'che-tls'
if (!yamlCr.spec.k8s.tlsSecretName) {
yamlCr.spec.k8s.tlsSecretName = 'che-tls'
}
}
yamlCr.spec.server.selfSignedCert = flags['self-signed-cert']
yamlCr.spec.k8s.ingressDomain = flags.domain
Expand Down

0 comments on commit a7eb5a4

Please sign in to comment.