mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-03 11:49:48 +02:00
Rename 'permanent_slots' field to 'slots' (#401)
This commit is contained in:
@@ -41,7 +41,7 @@ type patroniDCS struct {
|
||||
RetryTimeout uint32 `json:"retry_timeout,omitempty"`
|
||||
MaximumLagOnFailover float32 `json:"maximum_lag_on_failover,omitempty"`
|
||||
PGBootstrapConfiguration map[string]interface{} `json:"postgresql,omitempty"`
|
||||
ReplicationSlots map[string]map[string]string `json:"replication_slots,omitempty"`
|
||||
Slots map[string]map[string]string `json:"slots,omitempty"`
|
||||
}
|
||||
|
||||
type pgBootstrap struct {
|
||||
@@ -216,8 +216,8 @@ PatroniInitDBParams:
|
||||
if patroni.TTL != 0 {
|
||||
config.Bootstrap.DCS.TTL = patroni.TTL
|
||||
}
|
||||
if patroni.ReplicationSlots != nil {
|
||||
config.Bootstrap.DCS.ReplicationSlots = patroni.ReplicationSlots
|
||||
if patroni.Slots != nil {
|
||||
config.Bootstrap.DCS.Slots = patroni.Slots
|
||||
}
|
||||
|
||||
config.PgLocalConfiguration = make(map[string]interface{})
|
||||
|
||||
Reference in New Issue
Block a user