Skip to content

Commit c292ad9

Browse files
authored
Merge pull request #6335 from RainbowMango/automated-cherry-pick-of-#6284-upstream-release-1.13
Automated cherry pick of #6284: update to 'predicate.GenerationChangedPredicate' in
2 parents 6b3bce2 + 0f5accf commit c292ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/status/cluster_status_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (c *ClusterStatusController) SetupWithManager(mgr controllerruntime.Manager
173173
}
174174
return controllerruntime.NewControllerManagedBy(mgr).
175175
Named(ControllerName).
176-
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc)).
176+
For(&clusterv1alpha1.Cluster{}, builder.WithPredicates(c.PredicateFunc, predicate.GenerationChangedPredicate{})).
177177
WithOptions(controller.Options{
178178
RateLimiter: ratelimiterflag.DefaultControllerRateLimiter[controllerruntime.Request](c.RateLimiterOptions),
179179
}).Complete(c)

0 commit comments

Comments
 (0)