2022-04-24 09:54:16 +00:00
|
|
|
{{/*
|
2022-01-23 23:22:17 +00:00
|
|
|
Synapse hostname, derived from either the Values.matrix.hostname override or the Ingress definition
|
|
|
|
*/}}
|
|
|
|
{{- define "matrix.hostname" -}}
|
|
|
|
{{- if .Values.matrix.hostname }}
|
|
|
|
{{- .Values.matrix.hostname -}}
|
|
|
|
{{- else }}
|
|
|
|
{{- .Values.ingress.hosts.synapse -}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{/*
|
|
|
|
Synapse hostname prepended with https:// to form a complete URL
|
|
|
|
*/}}
|
|
|
|
{{- define "matrix.baseUrl" -}}
|
|
|
|
{{- if .Values.matrix.hostname }}
|
|
|
|
{{- printf "https://%s" .Values.matrix.hostname -}}
|
|
|
|
{{- else }}
|
|
|
|
{{- printf "https://%s" .Values.ingress.hosts.synapse -}}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|