File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 74
74
webhookOpts webhook.Options
75
75
watchNamespace string
76
76
77
+ clusterCacheTrackerConcurrency int
77
78
vSphereClusterConcurrency int
78
79
vSphereMachineConcurrency int
79
80
providerServiceAccountConcurrency int
@@ -103,6 +104,9 @@ func InitFlags(fs *pflag.FlagSet) {
103
104
defaultLeaderElectionID ,
104
105
"Name of the config map to use as the locking resource when configuring leader election." )
105
106
107
+ fs .IntVar (& clusterCacheTrackerConcurrency , "clustercachetracker-concurrency" , 10 ,
108
+ "Number of clusters to process simultaneously" )
109
+
106
110
fs .IntVar (& vSphereClusterConcurrency , "vspherecluster-concurrency" , 10 ,
107
111
"Number of vSphere clusters to process simultaneously" )
108
112
@@ -447,7 +451,7 @@ func setupRemoteClusterCacheTracker(ctx *context.ControllerManagerContext, mgr c
447
451
Client : mgr .GetClient (),
448
452
Tracker : tracker ,
449
453
WatchFilterValue : managerOpts .WatchFilterValue ,
450
- }).SetupWithManager (ctx , mgr , concurrency (10 )); err != nil {
454
+ }).SetupWithManager (ctx , mgr , concurrency (clusterCacheTrackerConcurrency )); err != nil {
451
455
return nil , perrors .Wrapf (err , "unable to create ClusterCacheReconciler controller" )
452
456
}
453
457
You can’t perform that action at this time.
0 commit comments