mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-18 01:31:01 +02:00
standby clusters can only have 1 pod for now
This commit is contained in:
@@ -1051,6 +1051,7 @@ func (c *Cluster) getNumberOfInstances(spec *acidv1.PostgresSpec) int32 {
|
|||||||
/* Limit the max number of pods to one, if this is standby-cluster */
|
/* Limit the max number of pods to one, if this is standby-cluster */
|
||||||
if spec.StandbyCluster != nil {
|
if spec.StandbyCluster != nil {
|
||||||
c.logger.Info("Standby cluster can have maximum of 1 pod")
|
c.logger.Info("Standby cluster can have maximum of 1 pod")
|
||||||
|
min = 1
|
||||||
max = 1
|
max = 1
|
||||||
}
|
}
|
||||||
if max >= 0 && newcur > max {
|
if max >= 0 && newcur > max {
|
||||||
|
|||||||
Reference in New Issue
Block a user