@@ -82,34 +82,35 @@ var (
82
82
controllerName = "cluster-api-controller-manager"
83
83
84
84
// flags.
85
- metricsBindAddr string
86
- enableLeaderElection bool
87
- leaderElectionLeaseDuration time.Duration
88
- leaderElectionRenewDeadline time.Duration
89
- leaderElectionRetryPeriod time.Duration
90
- watchNamespace string
91
- watchFilterValue string
92
- profilerAddress string
93
- enableContentionProfiling bool
94
- clusterTopologyConcurrency int
95
- clusterClassConcurrency int
96
- clusterConcurrency int
97
- extensionConfigConcurrency int
98
- machineConcurrency int
99
- machineSetConcurrency int
100
- machineDeploymentConcurrency int
101
- machinePoolConcurrency int
102
- clusterResourceSetConcurrency int
103
- machineHealthCheckConcurrency int
104
- syncPeriod time.Duration
105
- restConfigQPS float32
106
- restConfigBurst int
107
- nodeDrainClientTimeout time.Duration
108
- webhookPort int
109
- webhookCertDir string
110
- healthAddr string
111
- tlsOptions = flags.TLSOptions {}
112
- logOptions = logs .NewOptions ()
85
+ metricsBindAddr string
86
+ enableLeaderElection bool
87
+ leaderElectionLeaseDuration time.Duration
88
+ leaderElectionRenewDeadline time.Duration
89
+ leaderElectionRetryPeriod time.Duration
90
+ watchNamespace string
91
+ watchFilterValue string
92
+ profilerAddress string
93
+ enableContentionProfiling bool
94
+ clusterTopologyConcurrency int
95
+ clusterCacheTrackerConcurrency int
96
+ clusterClassConcurrency int
97
+ clusterConcurrency int
98
+ extensionConfigConcurrency int
99
+ machineConcurrency int
100
+ machineSetConcurrency int
101
+ machineDeploymentConcurrency int
102
+ machinePoolConcurrency int
103
+ clusterResourceSetConcurrency int
104
+ machineHealthCheckConcurrency int
105
+ syncPeriod time.Duration
106
+ restConfigQPS float32
107
+ restConfigBurst int
108
+ nodeDrainClientTimeout time.Duration
109
+ webhookPort int
110
+ webhookCertDir string
111
+ healthAddr string
112
+ tlsOptions = flags.TLSOptions {}
113
+ logOptions = logs .NewOptions ()
113
114
)
114
115
115
116
func init () {
@@ -177,6 +178,9 @@ func InitFlags(fs *pflag.FlagSet) {
177
178
fs .IntVar (& clusterConcurrency , "cluster-concurrency" , 10 ,
178
179
"Number of clusters to process simultaneously" )
179
180
181
+ fs .IntVar (& clusterCacheTrackerConcurrency , "clustercachetracker-concurrency" , 10 ,
182
+ "Number of clusters to process simultaneously" )
183
+
180
184
fs .IntVar (& extensionConfigConcurrency , "extensionconfig-concurrency" , 10 ,
181
185
"Number of extension configs to process simultaneously" )
182
186
@@ -394,7 +398,7 @@ func setupReconcilers(ctx context.Context, mgr ctrl.Manager) {
394
398
Client : mgr .GetClient (),
395
399
Tracker : tracker ,
396
400
WatchFilterValue : watchFilterValue ,
397
- }).SetupWithManager (ctx , mgr , concurrency (clusterConcurrency )); err != nil {
401
+ }).SetupWithManager (ctx , mgr , concurrency (clusterCacheTrackerConcurrency )); err != nil {
398
402
setupLog .Error (err , "unable to create controller" , "controller" , "ClusterCacheReconciler" )
399
403
os .Exit (1 )
400
404
}
0 commit comments