Skip to content

Commit 9be4bba

Browse files
committed
opencloud gateway: set collaboration listener name and protocol depending on .Values.global.tls.enabled
1 parent 1446633 commit 9be4bba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/opencloud/templates/gateway/gateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,16 @@ spec:
151151
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
152152
{{- end }}
153153
{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
154+
{{- if .Values.global.tls.enabled }}
154155
- name: collaboration-https
156+
{{- else }}
157+
- name: collaboration-http
158+
{{- end }}
159+
{{- if .Values.global.tls.enabled }}
155160
protocol: HTTPS
161+
{{- else }}
162+
protocol: HTTP
163+
{{- end }}
156164
port: {{ .Values.httpRoute.gateway.port | default 443 }}
157165
hostname: {{ .Values.global.domain.wopi | quote }}
158166
{{- if .Values.global.tls.enabled }}

0 commit comments

Comments
 (0)