mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 05:30:26 +00:00
Changed flag name to node-controller-worker-count
This commit is contained in:
@@ -33,7 +33,7 @@ func (o *NodeControllerOptions) AddFlags(fs *pflag.FlagSet) {
|
|||||||
return
|
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.
|
// ApplyTo fills up ServiceController config with options.
|
||||||
|
@@ -175,7 +175,7 @@ func TestAddFlags(t *testing.T) {
|
|||||||
"--route-reconciliation-period=30s",
|
"--route-reconciliation-period=30s",
|
||||||
"--secure-port=10001",
|
"--secure-port=10001",
|
||||||
"--use-service-account-credentials=false",
|
"--use-service-account-credentials=false",
|
||||||
"--workerCount=5",
|
"--node-controller-worker-count=5",
|
||||||
}
|
}
|
||||||
err = fs.Parse(args)
|
err = fs.Parse(args)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user