mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Changed flag name to node-controller-worker-count
This commit is contained in:
parent
528f41490c
commit
ceb6a4ebf9
@ -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.
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user