mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-20 09:16:07 +02:00
remove Users section from Patroni Bootstrap (#2490)
This commit is contained in:
+2
-10
@@ -64,9 +64,8 @@ type patroniDCS struct {
|
||||
}
|
||||
|
||||
type pgBootstrap struct {
|
||||
Initdb []interface{} `json:"initdb"`
|
||||
Users map[string]pgUser `json:"users"`
|
||||
DCS patroniDCS `json:"dcs,omitempty"`
|
||||
Initdb []interface{} `json:"initdb"`
|
||||
DCS patroniDCS `json:"dcs,omitempty"`
|
||||
}
|
||||
|
||||
type spiloConfiguration struct {
|
||||
@@ -430,13 +429,6 @@ PatroniInitDBParams:
|
||||
config.PgLocalConfiguration[patroniPGHBAConfParameterName] = patroni.PgHba
|
||||
}
|
||||
|
||||
config.Bootstrap.Users = map[string]pgUser{
|
||||
opConfig.PamRoleName: {
|
||||
Password: "",
|
||||
Options: []string{constants.RoleFlagCreateDB, constants.RoleFlagNoLogin},
|
||||
},
|
||||
}
|
||||
|
||||
res, err := json.Marshal(config)
|
||||
return string(res), err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user