Changed flag name to node-controller-worker-count

This commit is contained in:
Paweł Banaszewski 2022-10-20 17:23:07 +00:00
parent 528f41490c
commit ceb6a4ebf9
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ package options
import (
"github.com/spf13/pflag"
nodeconfig "k8s.io/cloud-provider/controllers/node/config"
)
@ -33,7 +33,7 @@ func (o *NodeControllerOptions) AddFlags(fs *pflag.FlagSet) {
return
}
fs.Int32Var(&o.WorkerCount, "worker-count", o.WorkerCount, "Number of workers synchronizing node status.")
fs.Int32Var(&o.WorkerCount, "node-controller-worker-count", o.WorkerCount, "Number of workers synchronizing node status.")
}
// ApplyTo fills up ServiceController config with options.

View File

@ -175,7 +175,7 @@ func TestAddFlags(t *testing.T) {
"--route-reconciliation-period=30s",
"--secure-port=10001",
"--use-service-account-credentials=false",
"--workerCount=5",
"--node-controller-worker-count=5",
}
err = fs.Parse(args)
if err != nil {