File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11package config
22
33import (
4- "github.com/movetokube/postgres-operator/pkg/utils "
4+ "net/url "
55 "sync"
6+
7+ "github.com/movetokube/postgres-operator/pkg/utils"
68)
79
810type cfg struct {
@@ -21,9 +23,9 @@ func Get() *cfg {
2123 doOnce .Do (func () {
2224 config = & cfg {}
2325 config .PostgresHost = utils .MustGetEnv ("POSTGRES_HOST" )
24- config .PostgresUser = utils .MustGetEnv ("POSTGRES_USER" )
25- config .PostgresPass = utils .MustGetEnv ("POSTGRES_PASS" )
26- config .PostgresUriArgs = utils .MustGetEnv ("POSTGRES_URI_ARGS" )
26+ config .PostgresUser = url . PathEscape ( utils .MustGetEnv ("POSTGRES_USER" ) )
27+ config .PostgresPass = url . PathEscape ( utils .MustGetEnv ("POSTGRES_PASS" ) )
28+ config .PostgresUriArgs = url . QueryEscape ( utils .MustGetEnv ("POSTGRES_URI_ARGS" ) )
2729 config .PostgresDefaultDb = utils .GetEnv ("POSTGRES_DEFAULT_DATABASE" )
2830 config .CloudProvider = utils .GetEnv ("POSTGRES_CLOUD_PROVIDER" )
2931 })
You can’t perform that action at this time.
0 commit comments