@@ -112,20 +112,19 @@ var (
112112 managerOptions = flags.ManagerOptions {}
113113 logOptions = logs .NewOptions ()
114114 // core Cluster API specific flags.
115- remoteConnectionGracePeriod time.Duration
116- remoteConditionsGracePeriod time.Duration
117- clusterTopologyConcurrency int
118- clusterCacheConcurrency int
119- clusterClassConcurrency int
120- clusterConcurrency int
121- extensionConfigConcurrency int
122- machineConcurrency int
123- machineSetConcurrency int
124- machineDeploymentConcurrency int
125- machinePoolConcurrency int
126- clusterResourceSetConcurrency int
127- machineHealthCheckConcurrency int
128- useDeprecatedInfraMachineNaming bool
115+ remoteConnectionGracePeriod time.Duration
116+ remoteConditionsGracePeriod time.Duration
117+ clusterTopologyConcurrency int
118+ clusterCacheConcurrency int
119+ clusterClassConcurrency int
120+ clusterConcurrency int
121+ extensionConfigConcurrency int
122+ machineConcurrency int
123+ machineSetConcurrency int
124+ machineDeploymentConcurrency int
125+ machinePoolConcurrency int
126+ clusterResourceSetConcurrency int
127+ machineHealthCheckConcurrency int
129128)
130129
131130func init () {
@@ -252,10 +251,6 @@ func InitFlags(fs *pflag.FlagSet) {
252251 fs .StringVar (& healthAddr , "health-addr" , ":9440" ,
253252 "The address the health endpoint binds to." )
254253
255- fs .BoolVar (& useDeprecatedInfraMachineNaming , "use-deprecated-infra-machine-naming" , false ,
256- "Use deprecated infrastructure machine naming" )
257- _ = fs .MarkDeprecated ("use-deprecated-infra-machine-naming" , "This flag will be removed in v1.10." )
258-
259254 flags .AddManagerOptions (fs , & managerOptions )
260255
261256 feature .MutableGates .AddFlag (fs )
@@ -575,11 +570,10 @@ func setupReconcilers(ctx context.Context, mgr ctrl.Manager, watchNamespaces map
575570 os .Exit (1 )
576571 }
577572 if err := (& controllers.MachineSetReconciler {
578- Client : mgr .GetClient (),
579- APIReader : mgr .GetAPIReader (),
580- ClusterCache : clusterCache ,
581- WatchFilterValue : watchFilterValue ,
582- DeprecatedInfraMachineNaming : useDeprecatedInfraMachineNaming ,
573+ Client : mgr .GetClient (),
574+ APIReader : mgr .GetAPIReader (),
575+ ClusterCache : clusterCache ,
576+ WatchFilterValue : watchFilterValue ,
583577 }).SetupWithManager (ctx , mgr , concurrency (machineSetConcurrency )); err != nil {
584578 setupLog .Error (err , "Unable to create controller" , "controller" , "MachineSet" )
585579 os .Exit (1 )
0 commit comments