22 lines
566 B
Smarty
22 lines
566 B
Smarty
|
{{/*
|
||
|
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 }}
|