Skip to content

Commit 40a83e3

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

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
@@ -43,8 +43,16 @@ spec:
4343
matchLabels:
4444
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
4545
{{- if .Values.keycloak.enabled }}
46+
{{- if .Values.global.tls.enabled }}
4647
- name: keycloak-https
48+
{{- else }}
49+
- name: keycloak-http
50+
{{- end }}
51+
{{- if .Values.global.tls.enabled }}
4752
protocol: HTTPS
53+
{{- else }}
54+
protocol: HTTP
55+
{{- end }}
4856
port: {{ .Values.httpRoute.gateway.port | default 443 }}
4957
hostname: {{ .Values.global.domain.keycloak | quote }}
5058
{{- if .Values.global.tls.enabled }}

0 commit comments

Comments
 (0)