Cleanup ClusterClientSetFunc field in execution-controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
This commit is contained in:
parent
189368ab1e
commit
f9f81280dc
|
@ -268,7 +268,6 @@ func startExecutionController(ctx controllerscontext.Context) (bool, error) {
|
|||
ObjectWatcher: ctx.ObjectWatcher,
|
||||
PredicateFunc: helper.NewExecutionPredicateOnAgent(),
|
||||
InformerManager: informermanager.GetInstance(),
|
||||
ClusterClientSetFunc: util.NewClusterDynamicClientSetForAgent,
|
||||
RatelimiterOptions: ctx.Opts.RateLimiterOptions,
|
||||
}
|
||||
if err := executionController.SetupWithManager(ctx.Mgr); err != nil {
|
||||
|
|
|
@ -326,7 +326,6 @@ func startExecutionController(ctx controllerscontext.Context) (enabled bool, err
|
|||
ObjectWatcher: ctx.ObjectWatcher,
|
||||
PredicateFunc: helper.NewExecutionPredicate(ctx.Mgr),
|
||||
InformerManager: informermanager.GetInstance(),
|
||||
ClusterClientSetFunc: util.NewClusterDynamicClientSet,
|
||||
RatelimiterOptions: ctx.Opts.RateLimiterOptions,
|
||||
}
|
||||
if err := executionController.SetupWithManager(ctx.Mgr); err != nil {
|
||||
|
|
|
@ -43,7 +43,6 @@ type Controller struct {
|
|||
ObjectWatcher objectwatcher.ObjectWatcher
|
||||
PredicateFunc predicate.Predicate
|
||||
InformerManager informermanager.MultiClusterInformerManager
|
||||
ClusterClientSetFunc func(clusterName string, client client.Client) (*util.DynamicClusterClient, error)
|
||||
RatelimiterOptions ratelimiterflag.Options
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue