File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
coder-observability/templates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ Create the name of the service account to use
64
64
{ {/* Postgres connector string */} }
65
65
{ {- define " postgres-connector-string" -} }
66
66
{ {- if .Values.global.postgres.password -} }
67
- postgresql://{ { .Values.global.postgres.username } }:{ { urlquery .Values.global.postgres.password } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/postgres?sslmode={ { .Values.global.postgres.sslmode } }
67
+ postgresql://{ { .Values.global.postgres.username } }:{ { urlquery .Values.global.postgres.password } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/{ { .Values.global. postgres.database } } ?sslmode={ { .Values.global.postgres.sslmode } }
68
68
{ {- else if .Values.global.postgres.mountSecret -} }
69
- postgresql://{ { .Values.global.postgres.username } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/postgres?sslmode={ { .Values.global.postgres.sslmode } }
69
+ postgresql://{ { .Values.global.postgres.username } }@{ { .Values.global.postgres.hostname } }:{ { .Values.global.postgres.port } }/{ { .Values.global. postgres.database } } ?sslmode={ { .Values.global.postgres.sslmode } }
70
70
{ {- else -} }
71
71
{ { fail " either postgres.password or postgres.mountSecret must be defined" } }
72
72
{ {- end -} }
You can’t perform that action at this time.
0 commit comments