matrix-media-repo: Handle missing pgsql port value
This commit is contained in:
parent
8b3ec66704
commit
17abe8c43a
1 changed files with 4 additions and 0 deletions
|
@ -105,7 +105,11 @@ Set postgres port
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "matrix-media-repo.postgresql.port" -}}
|
{{- define "matrix-media-repo.postgresql.port" -}}
|
||||||
{{- if .Values.postgresql.enabled -}}
|
{{- if .Values.postgresql.enabled -}}
|
||||||
|
{{- if .Values.postgresql.service -}}
|
||||||
{{- .Values.postgresql.service.port | default 5432 }}
|
{{- .Values.postgresql.service.port | default 5432 }}
|
||||||
|
{{- else -}}
|
||||||
|
5432
|
||||||
|
{{- end -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- required "A valid externalPostgresql.port is required" .Values.externalPostgresql.port -}}
|
{{- required "A valid externalPostgresql.port is required" .Values.externalPostgresql.port -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
Loading…
Reference in a new issue