Is your feature request related to a problem? Please describe:
The shared informer factory has called the WaitForCacheSync method, and it is no longer need to call it separately for each controller. We can remove Informer ().HasSynced because it will not be used.
Feature Request
Is your feature request related to a problem? Please describe:
The shared informer factory has called the
WaitForCacheSync
method, and it is no longer need to call it separately for each controller. We can removeInformer ().HasSynced
because it will not be used.https://github.com/pingcap/tidb-operator/blob/master/pkg/controller/tidbcluster/tidb_cluster_controller.go#L248
Describe the feature you'd like:
Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy: