mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 05:06:13 +02:00
small fix for setting bools in Postgres config
This commit is contained in:
+2
-2
@@ -416,10 +416,10 @@ func (c *Cluster) syncStatefulSet() error {
|
||||
if c.Spec.Patroni.TTL > 0 {
|
||||
desiredPostgresConfig["ttl"] = c.Spec.Patroni.TTL
|
||||
}
|
||||
if effectivePostgresConfig["synchronous_mode"] != desiredPostgresConfig["synchronous_mode"] {
|
||||
if effectivePostgresConfig["synchronous_mode"] != c.Spec.Patroni.SynchronousMode {
|
||||
desiredPostgresConfig["synchronous_mode"] = c.Spec.Patroni.SynchronousMode
|
||||
}
|
||||
if effectivePostgresConfig["synchronous_mode_strict"] != desiredPostgresConfig["synchronous_mode_strict"] {
|
||||
if effectivePostgresConfig["synchronous_mode_strict"] != c.Spec.Patroni.SynchronousModeStrict {
|
||||
desiredPostgresConfig["synchronous_mode_strict"] = c.Spec.Patroni.SynchronousModeStrict
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user