Skip to content

Commit 11b1565

Browse files
authored
Merge pull request #6337 from RainbowMango/automated-cherry-pick-of-#6284-upstream-release-1.11
Automated cherry pick of #6284: update to 'predicate.GenerationChangedPredicate' in
2 parents 28d80bd + f9bd6d2 commit 11b1565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/status/cluster_status_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (c *ClusterStatusController) SetupWithManager(mgr controllerruntime.Manager
171171
failureThreshold: c.ClusterFailureThreshold.Duration,
172172
}
173173
return controllerruntime.NewControllerManagedBy(mgr).
174-
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc)).
174+
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc, predicate.GenerationChangedPredicate{})).
175175
WithOptions(controller.Options{
176176
RateLimiter: ratelimiterflag.DefaultControllerRateLimiter(c.RateLimiterOptions),
177177
}).Complete(c)

0 commit comments

Comments
 (0)