Skip to content

Commit 7fb1632

Browse files
authored
standby clusters can only have 1 pod for now (#797)
1 parent e6ce000 commit 7fb1632

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cluster/k8sres.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ func (c *Cluster) getNumberOfInstances(spec *acidv1.PostgresSpec) int32 {
10511051
/* Limit the max number of pods to one, if this is standby-cluster */
10521052
if spec.StandbyCluster != nil {
10531053
c.logger.Info("Standby cluster can have maximum of 1 pod")
1054+
min = 1
10541055
max = 1
10551056
}
10561057
if max >= 0 && newcur > max {

0 commit comments

Comments
 (0)