Skip to content

Commit

Permalink
poddecoration partition2
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdsteelRail committed Jun 11, 2024
1 parent d6e0e59 commit a29b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/collaset/synccontrol/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func decidePodToUpdateByPartition(cls *appsv1alpha1.CollaSet, podInfos []*PodUpd
sort.Sort(ordered)

partition := int(*cls.Spec.UpdateStrategy.RollingUpdate.ByPartition.Partition)
if partition >= len(ordered) {
if partition >= podsNum {
return podToUpdate
}
podToUpdate = ordered[:podsNum-partition]
Expand Down

0 comments on commit a29b0d3

Please sign in to comment.