Skip to content

Commit 78775b0

Browse files
committed
rename use-api-server-cache to use-apiserver-cache in flags
1 parent 6f4fb87 commit 78775b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/cli-arguments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Usage of ./kube-state-metrics:
5454
--telemetry-port int Port to expose kube-state-metrics self metrics on. (default 8081)
5555
--tls-config string Path to the TLS configuration file
5656
--total-shards int The total number of shards. Sharding is disabled when total shards is set to 1. (default 1)
57-
--use-api-server-cache Set resourceVersion=0 for ListWatch
57+
--use-apiserver-cache Sets resourceVersion=0 for ListWatch requests, using cached resources from the apiserver instead of an etcd quorum read.
5858
-v, --v Level number for the log level verbosity
5959
--version kube-state-metrics build version information
6060
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging

pkg/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (o *Options) AddFlags() {
8080
o.flags.PrintDefaults()
8181
}
8282

83-
o.flags.BoolVarP(&o.UseAPIServerCache, "use-api-server-cache", "", false, "Set resourceVersion=0 for ListWatch")
83+
o.flags.BoolVarP(&o.UseAPIServerCache, "use-apiserver-cache", "", false, "Sets resourceVersion=0 for ListWatch requests, using cached resources from the apiserver instead of an etcd quorum read.")
8484
o.flags.StringVar(&o.Apiserver, "apiserver", "", `The URL of the apiserver to use as a master`)
8585
o.flags.StringVar(&o.Kubeconfig, "kubeconfig", "", "Absolute path to the kubeconfig file")
8686
o.flags.StringVar(&o.TLSConfig, "tls-config", "", "Path to the TLS configuration file")

0 commit comments

Comments
 (0)