reflect feedback and updated docs

This commit is contained in:
Felix Kunde
2020-02-24 14:35:06 +01:00
parent 236fbbf2c6
commit bdda618ad4
3 changed files with 35 additions and 29 deletions
+3 -3
View File
@@ -1049,11 +1049,11 @@ func (c *Cluster) getNumberOfInstances(spec *acidv1.PostgresSpec) int32 {
newcur := cur
if spec.StandbyCluster != nil {
if newcur > 1 {
c.logger.Warningf("operator only supports standby clusters with 1 pod")
} else {
if newcur == 1 {
min = newcur
max = newcur
} else {
c.logger.Warningf("operator only supports standby clusters with 1 pod")
}
}
if max >= 0 && newcur > max {