synapse: make sure serverName can use helm templates

This commit is contained in:
Gaël Goinvic committed 2025-04-24 10:57:36 +02:00
1 parent 7fc9af2fd5
commit 5ce9698eec
3 files changed
+3 -2

No files matched your search

@@ -58,7 +58,7 @@ telemetry:
*/ -}}
{{- if $root.Values.synapse.enabled }}
matrix:
homeserver: "{{ $root.Values.serverName }}"
homeserver: "{{ tpl $root.Values.serverName $root }}"
secret: ${SYNAPSE_SHARED_SECRET}
endpoint: "http://{{ $root.Release.Name }}-synapse-main.{{ $root.Release.Namespace }}.svc.cluster.local:8008"
{{- end }}
@@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{- with required "synapse/synapse-04-homeserver-overrides.yaml.tpl missing context" .context }}
{{- $isHook := required "element-io.synapse.config.shared-overrides requires context.isHook" .isHook -}}
public_baseurl: https://{{ tpl .ingress.host $root }}/
server_name: {{ required "Synapse requires serverName set" $root.Values.serverName }}
server_name: {{ tpl (required "Synapse requires serverName set" $root.Values.serverName) $root }}
signing_key_path: /secrets/{{
include "element-io.ess-library.init-secret-path" (
dict "root" $root "context" (
+1
View File
@@ -0,0 +1 @@
Make sure `serverName` can be templatized in Synapse config.