mirror of
https://github.com/GothenburgBitFactory/taskchampion-sync-server.git
synced 2026-07-16 08:24:45 +00:00
Fix port quoting
This commit is contained in:
committed by
Dustin J. Mitchell
parent
84c06475c6
commit
a8f7281786
@ -42,7 +42,7 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
|
|
||||||
{{- define "taskchampion-sync-server.postgres-connection" -}}
|
{{- define "taskchampion-sync-server.postgres-connection" -}}
|
||||||
{{- $host := .Values.postgres.host -}}
|
{{- $host := .Values.postgres.host -}}
|
||||||
{{- $port := .Values.postgres.port | quote -}}
|
{{- $port := .Values.postgres.port -}}
|
||||||
{{- $username := .Values.postgres.username -}}
|
{{- $username := .Values.postgres.username -}}
|
||||||
{{- $password := .Values.postgres.password -}}
|
{{- $password := .Values.postgres.password -}}
|
||||||
{{- $database := .Values.postgres.database -}}
|
{{- $database := .Values.postgres.database -}}
|
||||||
@ -57,8 +57,8 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
{{- $uri = printf "%s@" $uri -}}
|
{{- $uri = printf "%s@" $uri -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $uri = printf "%s%s" $uri $host -}}
|
{{- $uri = printf "%s%s" $uri $host -}}
|
||||||
{{- if ne $port "5432" -}}
|
{{- if ne (printf "%v" $port) "5432" -}}
|
||||||
{{- $uri = printf "%s:%s" $uri $port -}}
|
{{- $uri = printf "%s:%v" $uri $port -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if ne $database "taskchampion" -}}
|
{{- if ne $database "taskchampion" -}}
|
||||||
{{- $uri = printf "%s/%s" $uri $database -}}
|
{{- $uri = printf "%s/%s" $uri $database -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user