Skip to content

Commit 9751e4d

Browse files
LivingCcjRainbowMango
authored andcommitted
update to 'predicate.GenerationChangedPredicate' in cluster_status_controller
Signed-off-by: LivingCcj <livingccj@163.com>
1 parent 8346f07 commit 9751e4d

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)