mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-05 04:31:42 +02:00
in sync mode select only syncStandby as switchover candidate (#2278)
* in sync mode select only syncStandby as swicthover candidate * do not exit retry with err * unit test: use error from reading byte stream twice
This commit is contained in:
+1
-1
@@ -458,7 +458,7 @@ func (c *Cluster) syncPatroniConfig(pods []v1.Pod, requiredPatroniConfig acidv1.
|
||||
// get Postgres config, compare with manifest and update via Patroni PATCH endpoint if it differs
|
||||
for i, pod := range pods {
|
||||
podName := util.NameFromMeta(pods[i].ObjectMeta)
|
||||
effectivePatroniConfig, effectivePgParameters, err = c.patroni.GetConfig(&pod)
|
||||
effectivePatroniConfig, effectivePgParameters, err = c.getPatroniConfig(&pod)
|
||||
if err != nil {
|
||||
errors = append(errors, fmt.Sprintf("could not get Postgres config from pod %s: %v", podName, err))
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user