1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-31 04:04:51 +00:00

update flag name

This commit is contained in:
Igor Velichkovich 2025-01-09 11:36:32 -08:00
parent 1f3b2b7f99
commit a0e601b069
2 changed files with 4 additions and 4 deletions

View file

@ -117,7 +117,7 @@ func initFlags(flagset *flag.FlagSet) (*master.Args, *master.ConfigOverrideArgs)
"in the same format as in the config file (i.e. json or yaml). These options")
flagset.BoolVar(&args.EnableLeaderElection, "enable-leader-election", false,
"Enables a leader election. Enable this when running more than one replica on nfd master.")
flagset.Int64Var(&args.ListSize, "informer-list-size", 200,
flagset.Int64Var(&args.ListSize, "informer-page-size", 200,
"The list size to use when listing NodeFeature objects to sync informer cache.")
args.Klog = klogutils.InitKlogFlags(flagset)

View file

@ -173,9 +173,9 @@ Example:
nfd-master -deny-label-ns=*.vendor.com,vendor-2.io
```
### -informer-list-size
### -informer-page-size
The `-informer-list-size` flag is used to control pagination during informer cache sync on nfd-master startup.
The `-informer-page-size` flag is used to control pagination during informer cache sync on nfd-master startup.
This is useful to control load on api-server/etcd as listing NodeFeature objects can be expensive, especially in large clusters.
Default: 200
@ -183,7 +183,7 @@ Default: 200
Example:
```bash
nfd-master -informer-list-size=200
nfd-master -informer-page-size=20
```
### -config