Skip to content

Commit c0cc441

Browse files
committed
opencloud gateway: set opencloud listener name and protocol depending on .Values.global.tls.enabled
1 parent 36f7a33 commit c0cc441

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
@@ -17,8 +17,16 @@ spec:
1717
{{- toYaml . | nindent 4 }}
1818
{{- end }}
1919
listeners:
20+
{{- if .Values.global.tls.enabled }}
2021
- name: opencloud-https
22+
{{- else }}
23+
- name: opencloud-http
24+
{{- end }}
25+
{{- if .Values.global.tls.enabled }}
2126
protocol: HTTPS
27+
{{- else }}
28+
protocol: HTTP
29+
{{- end }}
2230
port: {{ .Values.httpRoute.gateway.port | default 443 }}
2331
hostname: {{ .Values.global.domain.opencloud | quote }}
2432
{{- if .Values.global.tls.enabled }}

0 commit comments

Comments
 (0)