@@ -21,10 +21,182 @@ spec:
2121 - host : {{ .Values.synapse.serverName }}
2222 http :
2323 paths :
24- - path : /
25- pathType : Prefix
24+ {{- range $route := .Values.ingress.masterOverridesRoutes }}
25+ - path : {{ $route }}
26+ pathType : ImplementationSpecific
27+ backend :
28+ service :
29+ port :
30+ number : 80
31+ name : synapse-master
32+ {{- end }}
33+ {{- range $route := .Values.ingress.roomFederationRoutes }}
34+ - path : {{ $route }}
35+ pathType : ImplementationSpecific
2636 backend :
2737 service :
2838 port :
2939 number : 80
3040 name : synapse-client-reader-envoy
41+ {{- end }}
42+ {{- range $route := .Values.ingress.typing }}
43+ - path : {{ $route }}
44+ pathType : ImplementationSpecific
45+ backend :
46+ service :
47+ port :
48+ number : 80
49+ name : synapse-typing
50+ {{- end }}
51+ {{- range $route := .Values.ingress.toDevice }}
52+ - path : {{ $route }}
53+ pathType : ImplementationSpecific
54+ backend :
55+ service :
56+ port :
57+ number : 80
58+ name : synapse-to-device
59+ {{- end }}
60+ {{- range $route := .Values.ingress.accountData }}
61+ - path : {{ $route }}
62+ pathType : ImplementationSpecific
63+ backend :
64+ service :
65+ port :
66+ number : 80
67+ name : synapse-account-data
68+ {{- end }}
69+ {{- range $route := .Values.ingress.receipts }}
70+ - path : {{ $route }}
71+ pathType : ImplementationSpecific
72+ backend :
73+ service :
74+ port :
75+ number : 80
76+ name : synapse-receipts
77+ {{- end }}
78+ {{- range $route := .Values.ingress.presence }}
79+ - path : {{ $route }}
80+ pathType : ImplementationSpecific
81+ backend :
82+ service :
83+ port :
84+ number : 80
85+ name : synapse-presence
86+ {{- end }}
87+ {{- range $route := .Values.ingress.pushRulesRoutes }}
88+ - path : {{ $route }}
89+ pathType : ImplementationSpecific
90+ backend :
91+ service :
92+ port :
93+ number : 80
94+ name : synapse-push-rules
95+ {{- end }}
96+ {{- range $route := .Values.ingress.deviceListsRoutes }}
97+ - path : {{ $route }}
98+ pathType : ImplementationSpecific
99+ backend :
100+ service :
101+ port :
102+ number : 80
103+ name : synapse-device-lists
104+ {{- end }}
105+ {{- if .Values.experimentalFeatures.msc4306.enabled }}
106+ {{- range $route := .Values.ingress.threadSubscriptionsRoutes }}
107+ - path : {{ $route }}
108+ pathType : ImplementationSpecific
109+ backend :
110+ service :
111+ port :
112+ number : 80
113+ name : synapse-thread-subscriptions
114+ {{- end }}
115+ {{- end }}
116+ {{- range $route := .Values.ingress.roomRoutes }}
117+ - path : {{ $route }}
118+ pathType : ImplementationSpecific
119+ backend :
120+ service :
121+ port :
122+ number : 80
123+ # !
124+ name : synapse-client-reader-envoy
125+ {{- end }}
126+ {{- range $route := .Values.ingress.syncRoutes }}
127+ - path : {{ $route }}
128+ pathType : ImplementationSpecific
129+ backend :
130+ service :
131+ port :
132+ number : 80
133+ # !
134+ name : synapse-client-reader-envoy
135+ {{- end }}
136+ {{- range $route := .Values.ingress.clientReaderRoutes }}
137+ - path : {{ $route }}
138+ pathType : ImplementationSpecific
139+ backend :
140+ service :
141+ port :
142+ number : 80
143+ name : synapse-client-reader-envoy
144+ {{- end }}
145+ {{- if not .Values.matrixAuthentication.enabled }}
146+ {{- range $route := .Values.ingress.clientReaderRegister }}
147+ - path : {{ $route }}
148+ pathType : ImplementationSpecific
149+ backend :
150+ service :
151+ port :
152+ number : 80
153+ name : synapse-client-reader-envoy
154+ {{- end }}
155+ {{- end }}
156+ {{- range $route := .Values.ingress.federationReaderRoutes }}
157+ - path : {{ $route }}
158+ pathType : ImplementationSpecific
159+ backend :
160+ service :
161+ port :
162+ number : 80
163+ name : synapse-client-reader-envoy
164+ {{- end }}
165+ {{- if .Values.matrixAuthentication.enabled }}
166+ {{- range $route := .Values.ingress.matrixAuthentication }}
167+ - path : {{ $route }}
168+ pathType : ImplementationSpecific
169+ backend :
170+ service :
171+ port :
172+ number : 80
173+ name : matrix-authentication
174+ {{- end }}
175+ {{- end }}
176+ {{- range $route := .Values.ingress.userDirectoryRoutes }}
177+ - path : {{ $route }}
178+ pathType : ImplementationSpecific
179+ backend :
180+ service :
181+ port :
182+ number : 80
183+ name : synapse-user-dir
184+ {{- end }}
185+ {{- range $route := .Values.ingress.mediaRepository }}
186+ - path : {{ $route }}
187+ pathType : ImplementationSpecific
188+ backend :
189+ service :
190+ port :
191+ number : 80
192+ name : synapse-media-repository
193+ {{- end }}
194+ {{- range $route := .Values.ingress.masterRoutes }}
195+ - path : {{ $route }}
196+ pathType : ImplementationSpecific
197+ backend :
198+ service :
199+ port :
200+ number : 80
201+ name : synapse-master
202+ {{- end }}
0 commit comments