Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mkabilov committed Oct 16, 2017
1 parent 2fa6b60 commit 2424ac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cluster/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ func (c *Cluster) preScaleDown(newStatefulSet *v1beta1.StatefulSet) error {
}

//Check if scale down affects current master pod
if (*c.Statefulset.Spec.Replicas < podNum+1) ||
(*newStatefulSet.Spec.Replicas > podNum+1) {
if *newStatefulSet.Spec.Replicas >= podNum+1 {
return nil
}

Expand Down

0 comments on commit 2424ac7

Please sign in to comment.