@@ -17,31 +17,51 @@ spec:
17
17
{{- toYaml . | nindent 4 }}
18
18
{{- end }}
19
19
listeners :
20
+ {{- if .Values.global.tls.enabled }}
20
21
- name : opencloud-https
22
+ {{- else }}
23
+ - name : opencloud-http
24
+ {{- end }}
25
+ {{- if .Values.global.tls.enabled }}
21
26
protocol : HTTPS
27
+ {{- else }}
28
+ protocol : HTTP
29
+ {{- end }}
22
30
port : {{ .Values.httpRoute.gateway.port }}
23
31
hostname : {{ .Values.global.domain.opencloud | quote }}
32
+ {{- if .Values.global.tls.enabled }}
24
33
tls :
25
34
mode : Terminate
26
35
certificateRefs :
27
36
- name : {{ .Values.global.tls.secretName }}
28
37
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
38
+ {{- end }}
29
39
allowedRoutes :
30
40
namespaces :
31
41
from : Selector
32
42
selector :
33
43
matchLabels :
34
44
kubernetes.io/metadata.name : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
35
45
{{- if .Values.keycloak.enabled }}
46
+ {{- if .Values.global.tls.enabled }}
36
47
- name : keycloak-https
48
+ {{- else }}
49
+ - name : keycloak-http
50
+ {{- end }}
51
+ {{- if .Values.global.tls.enabled }}
37
52
protocol : HTTPS
53
+ {{- else }}
54
+ protocol : HTTP
55
+ {{- end }}
38
56
port : {{ .Values.httpRoute.gateway.port }}
39
57
hostname : {{ .Values.global.domain.keycloak | quote }}
58
+ {{- if .Values.global.tls.enabled }}
40
59
tls :
41
60
mode : Terminate
42
61
certificateRefs :
43
62
- name : {{ .Values.global.tls.secretName }}
44
63
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
64
+ {{- end }}
45
65
allowedRoutes :
46
66
namespaces :
47
67
from : Selector
@@ -50,15 +70,25 @@ spec:
50
70
kubernetes.io/metadata.name : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
51
71
{{- end }}
52
72
{{- if and .Values.opencloud.storage.s3.internal.enabled .Values.opencloud.storage.s3.internal.httpRoute.enabled }}
73
+ {{- if .Values.global.tls.enabled }}
53
74
- name : minio-https
75
+ {{- else }}
76
+ - name : minio-http
77
+ {{- end }}
78
+ {{- if .Values.global.tls.enabled }}
54
79
protocol : HTTPS
80
+ {{- else }}
81
+ protocol : HTTP
82
+ {{- end }}
55
83
port : {{ .Values.httpRoute.gateway.port }}
56
84
hostname : {{ .Values.global.domain.minio | quote }}
85
+ {{- if .Values.global.tls.enabled }}
57
86
tls :
58
87
mode : Terminate
59
88
certificateRefs :
60
89
- name : {{ .Values.global.tls.secretName }}
61
90
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
91
+ {{- end }}
62
92
allowedRoutes :
63
93
namespaces :
64
94
from : Selector
@@ -67,15 +97,25 @@ spec:
67
97
kubernetes.io/metadata.name : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
68
98
{{- end }}
69
99
{{- if .Values.collabora.enabled }}
100
+ {{- if .Values.global.tls.enabled }}
70
101
- name : collabora-https
102
+ {{- else }}
103
+ - name : collabora-http
104
+ {{- end }}
105
+ {{- if .Values.global.tls.enabled }}
71
106
protocol : HTTPS
107
+ {{- else }}
108
+ protocol : HTTP
109
+ {{- end }}
72
110
port : {{ .Values.httpRoute.gateway.port }}
73
111
hostname : {{ .Values.global.domain.collabora | quote }}
112
+ {{- if .Values.global.tls.enabled }}
74
113
tls :
75
114
mode : Terminate
76
115
certificateRefs :
77
116
- name : {{ .Values.global.tls.secretName }}
78
117
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
118
+ {{- end }}
79
119
allowedRoutes :
80
120
namespaces :
81
121
from : Selector
@@ -84,15 +124,25 @@ spec:
84
124
kubernetes.io/metadata.name : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
85
125
{{- end }}
86
126
{{- if .Values.onlyoffice.enabled }}
127
+ {{- if .Values.global.tls.enabled }}
87
128
- name : onlyoffice-https
129
+ {{- else }}
130
+ - name : onlyoffice-http
131
+ {{- end }}
132
+ {{- if .Values.global.tls.enabled }}
88
133
protocol : HTTPS
134
+ {{- else }}
135
+ protocol : HTTP
136
+ {{- end }}
89
137
port : {{ .Values.httpRoute.gateway.port }}
90
138
hostname : {{ .Values.global.domain.onlyoffice | quote }}
139
+ {{- if .Values.global.tls.enabled }}
91
140
tls :
92
141
mode : Terminate
93
142
certificateRefs :
94
143
- name : {{ .Values.global.tls.secretName }}
95
144
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
145
+ {{- end }}
96
146
allowedRoutes :
97
147
namespaces :
98
148
from : Selector
@@ -101,15 +151,25 @@ spec:
101
151
kubernetes.io/metadata.name : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
102
152
{{- end }}
103
153
{{- if and .Values.onlyoffice.collaboration.enabled .Values.onlyoffice.enabled }}
154
+ {{- if .Values.global.tls.enabled }}
104
155
- name : collaboration-https
156
+ {{- else }}
157
+ - name : collaboration-http
158
+ {{- end }}
159
+ {{- if .Values.global.tls.enabled }}
105
160
protocol : HTTPS
161
+ {{- else }}
162
+ protocol : HTTP
163
+ {{- end }}
106
164
port : {{ .Values.httpRoute.gateway.port }}
107
165
hostname : {{ .Values.global.domain.wopi | quote }}
166
+ {{- if .Values.global.tls.enabled }}
108
167
tls :
109
168
mode : Terminate
110
169
certificateRefs :
111
170
- name : {{ .Values.global.tls.secretName }}
112
171
namespace : {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
172
+ {{- end }}
113
173
allowedRoutes :
114
174
namespaces :
115
175
from : Selector
0 commit comments