Skip to content

Commit

Permalink
add active filter back
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Aller <[email protected]>
  • Loading branch information
zachaller committed Oct 16, 2024
1 parent f70aeea commit 3c3f181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollout/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (c *rolloutContext) isScalingEvent() (bool, error) {
// We only care about scaling events on the newRS and stableRS because these are the only replicasets that we ever
// adjust the replicas counts on as well as the desired annotation. When we have stacked rollouts going the middle
// replicasets will never have the desired annotation updated this can cause a tight loop of isScalingEvent -> syncReplicasOnly -> isScalingEvent
for _, rs := range []*appsv1.ReplicaSet{c.newRS, c.stableRS} {
for _, rs := range controller.FilterActiveReplicaSets([]*appsv1.ReplicaSet{c.newRS, c.stableRS}) {
desired, ok := annotations.GetDesiredReplicasAnnotation(rs)
if !ok {
continue
Expand Down

0 comments on commit 3c3f181

Please sign in to comment.