Skip to content

Commit 2d061b8

Browse files
committed
Fix review findings
1 parent 12ab356 commit 2d061b8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

bootstrap/kubeadm/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func InitFlags(fs *pflag.FlagSet) {
144144
fs.IntVar(&kubeadmConfigConcurrency, "kubeadmconfig-concurrency", 10,
145145
"Number of kubeadm configs to process simultaneously")
146146

147-
fs.StringArrayVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
147+
fs.StringSliceVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
148148
"List of CRD migration phases to skip. Valid values are: StorageVersionMigration, CleanupManagedFields.")
149149

150150
fs.DurationVar(&syncPeriod, "sync-period", 10*time.Minute,

controlplane/kubeadm/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func InitFlags(fs *pflag.FlagSet) {
148148
fs.IntVar(&kubeadmControlPlaneConcurrency, "kubeadmcontrolplane-concurrency", 10,
149149
"Number of kubeadm control planes to process simultaneously")
150150

151-
fs.StringArrayVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
151+
fs.StringSliceVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
152152
"List of CRD migration phases to skip. Valid values are: StorageVersionMigration, CleanupManagedFields.")
153153

154154
fs.IntVar(&clusterCacheConcurrency, "clustercache-concurrency", 100,

main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -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)

test/infrastructure/docker/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func InitFlags(fs *pflag.FlagSet) {
159159
fs.IntVar(&clusterCacheConcurrency, "clustercache-concurrency", 100,
160160
"Number of clusters to process simultaneously")
161161

162-
fs.StringArrayVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
162+
fs.StringSliceVar(&skipCRDMigrationPhases, "skip-crd-migration-phases", []string{},
163163
"List of CRD migration phases to skip. Valid values are: StorageVersionMigration, CleanupManagedFields.")
164164

165165
fs.DurationVar(&syncPeriod, "sync-period", 10*time.Minute,

0 commit comments

Comments
 (0)