Skip to content

Commit

Permalink
Merge pull request #481 from jiuker/patch-5
Browse files Browse the repository at this point in the history
Update client.go
  • Loading branch information
ese authored Sep 22, 2022
2 parents dda0fd4 + 91a812d commit 3353c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/redisfailover/service/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (r *RedisFailoverKubeClient) ensurePodDisruptionBudget(rf *redisfailoverv1.

minAvailable := intstr.FromInt(2)
if rf.Spec.Redis.Replicas <= 2 {
minAvailable = intstr.FromInt(int(rf.Spec.Redis.Replicas - 1))
minAvailable = intstr.FromInt(1)
}

labels = util.MergeLabels(labels, generateSelectorLabels(component, rf.Name))
Expand Down

0 comments on commit 3353c09

Please sign in to comment.