Skip to content

Commit b3ba2e9

Browse files
committed
Harmonise Synapse workerPaths on using concat even for single pathhs
1 parent 0259329 commit b3ba2e9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

charts/matrix-stack/templates/synapse/_synapse_details.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ responsibleForMedia
311311
{{- end }}
312312
313313
{{- if eq .workerType "encryption" }}
314-
{{ $workerPaths = append $workerPaths
314+
{{ $workerPaths = concat $workerPaths (list
315315
"^/_matrix/client/(r0|v3|unstable)/sendToDevice/"
316-
}}
316+
) }}
317317
{{- end }}
318318
319319
{{- if eq .workerType "event-creator" }}
@@ -386,9 +386,9 @@ responsibleForMedia
386386
{{- end }}
387387
388388
{{- if eq .workerType "presence-writer" }}
389-
{{ $workerPaths = append $workerPaths
389+
{{ $workerPaths = concat $workerPaths (list
390390
"^/_matrix/client/(api/v1|r0|v3|unstable)/presence/"
391-
}}
391+
) }}
392392
{{- end }}
393393
394394
{{- if eq .workerType "push-rules" }}
@@ -405,9 +405,9 @@ responsibleForMedia
405405
{{- end }}
406406
407407
{{- if eq .workerType "sliding-sync" }}
408-
{{ $workerPaths = append $workerPaths
408+
{{ $workerPaths = concat $workerPaths (list
409409
"^/_matrix/client/unstable/org.matrix.simplified_msc3575/.*"
410-
}}
410+
) }}
411411
{{- end }}
412412
413413
{{- if eq .workerType "sso-login" }}
@@ -441,15 +441,15 @@ responsibleForMedia
441441
{{- end }}
442442
443443
{{- if eq .workerType "typing-persister" }}
444-
{{ $workerPaths = append $workerPaths
444+
{{ $workerPaths = concat $workerPaths (list
445445
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/typing"
446-
}}
446+
) }}
447447
{{- end }}
448448
449449
{{- if eq .workerType "user-dir" }}
450-
{{ $workerPaths = append $workerPaths
450+
{{ $workerPaths = concat $workerPaths (list
451451
"^/_matrix/client/(r0|v3|unstable)/user_directory/search$"
452-
}}
452+
) }}
453453
{{- end }}
454454
{{ $workerPaths | toJson }}
455455
{{- end }}

0 commit comments

Comments
 (0)