Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clusterring: reduce unneeded reconciliations
Browse files Browse the repository at this point in the history
timebertt committed Nov 21, 2023
1 parent 7c60716 commit cecf01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/clusterring/add.go
Original file line number Diff line number Diff line change
@@ -96,7 +96,7 @@ func (r *Reconciler) LeasePredicate() predicate.Predicate {
}

// only enqueue ring if the shard's state changed
return leases.ToState(oldLease, r.Clock) != leases.ToState(newLease, r.Clock)
return leases.ToState(oldLease, r.Clock).IsAvailable() != leases.ToState(newLease, r.Clock).IsAvailable()
},
DeleteFunc: func(_ event.DeleteEvent) bool { return true },
},

0 comments on commit cecf01e

Please sign in to comment.