Skip to content

Commit

Permalink
Read self-signed certiicate from dedicated secret (to be consistent w…
Browse files Browse the repository at this point in the history
…ith operator installer) (#17044)

Signed-off-by: Mykola Morhun <mmorhun@redhat.com>
  • Loading branch information
mmorhun committed Jun 16, 2020
1 parent a901e3a commit 6ae2c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/kubernetes/helm/che/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
valueFrom:
secretKeyRef:
key: ca.crt
name: {{ .Values.global.tls.secretName }}
name: {{ .Values.global.tls.selfSignedCertSecretName }}
optional: false
{{- end }}

Expand Down
5 changes: 3 additions & 2 deletions deploy/kubernetes/helm/che/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ global:
secretName: che-tls

## If self-signed certificate flag is enabled
## then CA certificate from `tls.secretName` will be propagated to Che components' trust stores
useSelfSignedCerts: false
## then CA certificate from `tls.selfSignedCertSecretName` will be propagated to Che components' trust stores
useSelfSignedCerts: true
selfSignedCertSecretName: self-signed-certificate

## Name of the config-map with public certificates to add to Java trust store of the Che server.
serverTrustStoreConfigMapName: ""
Expand Down

0 comments on commit 6ae2c66

Please sign in to comment.