Skip to content

Commit e89a092

Browse files
authored
Merge pull request #6284 from LivingCcj/fix_cluster-status-update-frequency
Fix cluster status update interval not hornor `--cluster-status-update-frequency` issue
2 parents 8cbefd8 + 6257c98 commit e89a092

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
@@ -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)