feat!: replace password environment with Docker secret references
This commit is contained in:
@@ -247,11 +247,11 @@ func (p *parser) parsePostgres() (PostgresConfig, error) {
|
||||
return PostgresConfig{}, fmt.Errorf("line %d: volume may only be specified once", directive.line)
|
||||
}
|
||||
cfg.Volume = value
|
||||
case "password_env":
|
||||
if cfg.PasswordEnv != "" {
|
||||
return PostgresConfig{}, fmt.Errorf("line %d: password_env may only be specified once", directive.line)
|
||||
case "password_secret":
|
||||
if cfg.PasswordSecret != "" {
|
||||
return PostgresConfig{}, fmt.Errorf("line %d: password_secret may only be specified once", directive.line)
|
||||
}
|
||||
cfg.PasswordEnv = value
|
||||
cfg.PasswordSecret = value
|
||||
case "idle_timeout":
|
||||
if idleTimeoutSet {
|
||||
return PostgresConfig{}, fmt.Errorf("line %d: idle_timeout may only be specified once", directive.line)
|
||||
|
||||
Reference in New Issue
Block a user