@@ -228,14 +228,14 @@ func InitFlags(fs *pflag.FlagSet) {
228228 fs .IntVar (& machineHealthCheckConcurrency , "machinehealthcheck-concurrency" , 10 ,
229229 "Number of machine health checks to process simultaneously" )
230230
231- fs .StringArrayVar (& machineSetPreflightChecks , "machineset-preflight-checks" , []string {
231+ fs .StringSliceVar (& machineSetPreflightChecks , "machineset-preflight-checks" , []string {
232232 string (clusterv1 .MachineSetPreflightCheckAll )},
233233 "List of MachineSet preflight checks that should be run. Per default all of them are enabled." +
234234 "Set this flag to only enable a subset of them. The MachineSet preflight checks can be then also disabled" +
235235 "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" )
237237
238- fs .StringArrayVar (& skipCRDMigrationPhases , "skip-crd-migration-phases" , []string {},
238+ fs .StringSliceVar (& skipCRDMigrationPhases , "skip-crd-migration-phases" , []string {},
239239 "List of CRD migration phases to skip. Valid values are: StorageVersionMigration, CleanupManagedFields." )
240240
241241 fs .DurationVar (& syncPeriod , "sync-period" , 10 * time .Minute ,
@@ -268,7 +268,7 @@ func InitFlags(fs *pflag.FlagSet) {
268268 fs .StringVar (& healthAddr , "health-addr" , ":9440" ,
269269 "The address the health endpoint binds to." )
270270
271- fs .StringArrayVar (& additionalSyncMachineLabels , "additional-sync-machine-labels" , []string {},
271+ fs .StringSliceVar (& additionalSyncMachineLabels , "additional-sync-machine-labels" , []string {},
272272 "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." )
273273
274274 flags .AddManagerOptions (fs , & managerOptions )
0 commit comments