Skip to content

Commit 36f7a33

Browse files
committed
opencloud gateway: only add tls section if .Values.global.tls.enabled is true
1 parent 9e74a10 commit 36f7a33

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

charts/opencloud/templates/gateway/gateway.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ spec:
2121
protocol: HTTPS
2222
port: {{ .Values.httpRoute.gateway.port | default 443 }}
2323
hostname: {{ .Values.global.domain.opencloud | quote }}
24+
{{- if .Values.global.tls.enabled }}
2425
tls:
2526
mode: Terminate
2627
certificateRefs:
2728
- name: opencloud-wildcard-tls
2829
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
30+
{{- end }}
2931
allowedRoutes:
3032
namespaces:
3133
from: Selector
@@ -37,11 +39,13 @@ spec:
3739
protocol: HTTPS
3840
port: {{ .Values.httpRoute.gateway.port | default 443 }}
3941
hostname: {{ .Values.global.domain.keycloak | quote }}
42+
{{- if .Values.global.tls.enabled }}
4043
tls:
4144
mode: Terminate
4245
certificateRefs:
4346
- name: opencloud-wildcard-tls
4447
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
48+
{{- end }}
4549
allowedRoutes:
4650
namespaces:
4751
from: Selector
@@ -54,11 +58,13 @@ spec:
5458
protocol: HTTPS
5559
port: {{ .Values.httpRoute.gateway.port | default 443 }}
5660
hostname: {{ .Values.global.domain.minio | quote }}
61+
{{- if .Values.global.tls.enabled }}
5762
tls:
5863
mode: Terminate
5964
certificateRefs:
6065
- name: opencloud-wildcard-tls
6166
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
67+
{{- end }}
6268
allowedRoutes:
6369
namespaces:
6470
from: Selector
@@ -71,11 +77,13 @@ spec:
7177
protocol: HTTPS
7278
port: {{ .Values.httpRoute.gateway.port | default 443 }}
7379
hostname: {{ .Values.global.domain.collabora | quote }}
80+
{{- if .Values.global.tls.enabled }}
7481
tls:
7582
mode: Terminate
7683
certificateRefs:
7784
- name: opencloud-wildcard-tls
7885
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
86+
{{- end }}
7987
allowedRoutes:
8088
namespaces:
8189
from: Selector
@@ -88,11 +96,13 @@ spec:
8896
protocol: HTTPS
8997
port: {{ .Values.httpRoute.gateway.port | default 443 }}
9098
hostname: {{ .Values.global.domain.onlyoffice | quote }}
99+
{{- if .Values.global.tls.enabled }}
91100
tls:
92101
mode: Terminate
93102
certificateRefs:
94103
- name: opencloud-wildcard-tls
95104
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
105+
{{- end }}
96106
allowedRoutes:
97107
namespaces:
98108
from: Selector
@@ -105,11 +115,13 @@ spec:
105115
protocol: HTTPS
106116
port: {{ .Values.httpRoute.gateway.port | default 443 }}
107117
hostname: {{ .Values.global.domain.wopi | quote }}
118+
{{- if .Values.global.tls.enabled }}
108119
tls:
109120
mode: Terminate
110121
certificateRefs:
111122
- name: opencloud-wildcard-tls
112123
namespace: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
124+
{{- end }}
113125
allowedRoutes:
114126
namespaces:
115127
from: Selector

0 commit comments

Comments
 (0)