Skip to content

Commit 8ae94db

Browse files
authored
Merge pull request #6336 from RainbowMango/automated-cherry-pick-of-#6284-upstream-release-1.12
Automated cherry pick of #6284: update to 'predicate.GenerationChangedPredicate' in
2 parents 868a337 + 9751e4d commit 8ae94db

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
@@ -172,7 +172,7 @@ func (c *ClusterStatusController) SetupWithManager(mgr controllerruntime.Manager
172172
}
173173
return controllerruntime.NewControllerManagedBy(mgr).
174174
Named(ControllerName).
175-
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc)).
175+
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc, predicate.GenerationChangedPredicate{})).
176176
WithOptions(controller.Options{
177177
RateLimiter: ratelimiterflag.DefaultControllerRateLimiter[controllerruntime.Request](c.RateLimiterOptions),
178178
}).Complete(c)

0 commit comments

Comments
 (0)