Skip to content

Commit

Permalink
Update helm chart to provide Che Server TLS secret data for propagation
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
  • Loading branch information
sleshchenko committed Jul 25, 2019
1 parent 760e882 commit 7605ab6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions deploy/kubernetes/helm/che/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,24 @@ spec:
name: self-signed-certificate
optional: false
{{- end }}
# If workspaces are created in different namespace than Che Server's one
# then configure Che Server to propagate TLS secret to workspaces' namespaces
{{- if .Values.global.tls.enabled }}
{{- if ne .Values.global.cheNamespace .Values.global.cheWorkspacesNamespace }}
- name: "CHE_INFRA_KUBERNETES_TLS__CERT"
valueFrom:
secretKeyRef:
key: tls.crt
name: {{ .Values.global.tls.secretName }}
optional: false
- name: "CHE_INFRA_KUBERNETES_TLS__KEY"
valueFrom:
secretKeyRef:
key: tls.crt
name: {{ .Values.global.tls.secretName }}
optional: false
{{- end }}
{{- end }}
image: {{ .Values.cheImage }}
imagePullPolicy: {{ .Values.cheImagePullPolicy }}
securityContext:
Expand Down

0 comments on commit 7605ab6

Please sign in to comment.