@@ -228,14 +228,14 @@ func InitFlags(fs *pflag.FlagSet) {
228
228
fs .IntVar (& machineHealthCheckConcurrency , "machinehealthcheck-concurrency" , 10 ,
229
229
"Number of machine health checks to process simultaneously" )
230
230
231
- fs .StringArrayVar (& machineSetPreflightChecks , "machineset-preflight-checks" , []string {
231
+ fs .StringSliceVar (& machineSetPreflightChecks , "machineset-preflight-checks" , []string {
232
232
string (clusterv1 .MachineSetPreflightCheckAll )},
233
233
"List of MachineSet preflight checks that should be run. Per default all of them are enabled." +
234
234
"Set this flag to only enable a subset of them. The MachineSet preflight checks can be then also disabled" +
235
235
"on MachineSets via the 'machineset.cluster.x-k8s.io/skip-preflight-checks' annotation." +
236
- "Valid values are: All, KubeadmVersionSkew, KubernetesVersionSkew, ControlPlaneIsStable, ControlPlaneVersionSkew" )
236
+ "Valid values are: All or a list of KubeadmVersionSkew, KubernetesVersionSkew, ControlPlaneIsStable, ControlPlaneVersionSkew" )
237
237
238
- fs .StringArrayVar (& skipCRDMigrationPhases , "skip-crd-migration-phases" , []string {},
238
+ fs .StringSliceVar (& skipCRDMigrationPhases , "skip-crd-migration-phases" , []string {},
239
239
"List of CRD migration phases to skip. Valid values are: StorageVersionMigration, CleanupManagedFields." )
240
240
241
241
fs .DurationVar (& syncPeriod , "sync-period" , 10 * time .Minute ,
@@ -268,7 +268,7 @@ func InitFlags(fs *pflag.FlagSet) {
268
268
fs .StringVar (& healthAddr , "health-addr" , ":9440" ,
269
269
"The address the health endpoint binds to." )
270
270
271
- fs .StringArrayVar (& additionalSyncMachineLabels , "additional-sync-machine-labels" , []string {},
271
+ fs .StringSliceVar (& additionalSyncMachineLabels , "additional-sync-machine-labels" , []string {},
272
272
"List of regexes to select the additional set of labels to sync from the Machine to the Node. A label will be synced as long as it matches at least one of the regexes." )
273
273
274
274
flags .AddManagerOptions (fs , & managerOptions )
0 commit comments