Skip to content

Commit 19a0544

Browse files
update doc
1 parent c9ceded commit 19a0544

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pkg/options/options.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ type Options struct {
6060
NamespacesDenylist NamespaceList `yaml:"namespaces_denylist"`
6161
Node NodeType `yaml:"node"`
6262
EnableUnscheduledPodsFetching bool `yaml:"enable_unscheduled_pods_fetching"`
63-
Pod string `yaml:"pod"`
64-
Port int `yaml:"port"`
65-
Resources ResourceSet `yaml:"resources"`
66-
Shard int32 `yaml:"shard"`
67-
TLSConfig string `yaml:"tls_config"`
68-
TelemetryHost string `yaml:"telemetry_host"`
69-
TelemetryPort int `yaml:"telemetry_port"`
70-
TotalShards int `yaml:"total_shards"`
71-
UseAPIServerCache bool `yaml:"use_api_server_cache"`
72-
ServerReadTimeout time.Duration `yaml:"server_read_timeout"`
73-
ServerWriteTimeout time.Duration `yaml:"server_write_timeout"`
74-
ServerIdleTimeout time.Duration `yaml:"server_idle_timeout"`
75-
ServerReadHeaderTimeout time.Duration `yaml:"server_read_header_timeout"`
63+
Pod string `yaml:"pod"`
64+
Port int `yaml:"port"`
65+
Resources ResourceSet `yaml:"resources"`
66+
Shard int32 `yaml:"shard"`
67+
TLSConfig string `yaml:"tls_config"`
68+
TelemetryHost string `yaml:"telemetry_host"`
69+
TelemetryPort int `yaml:"telemetry_port"`
70+
TotalShards int `yaml:"total_shards"`
71+
UseAPIServerCache bool `yaml:"use_api_server_cache"`
72+
ServerReadTimeout time.Duration `yaml:"server_read_timeout"`
73+
ServerWriteTimeout time.Duration `yaml:"server_write_timeout"`
74+
ServerIdleTimeout time.Duration `yaml:"server_idle_timeout"`
75+
ServerReadHeaderTimeout time.Duration `yaml:"server_read_header_timeout"`
7676

7777
Config string
7878

@@ -138,7 +138,7 @@ func (o *Options) AddFlags(cmd *cobra.Command) {
138138

139139
o.cmd.Flags().BoolVar(&o.CustomResourcesOnly, "custom-resource-state-only", false, "Only provide Custom Resource State metrics (experimental)")
140140
o.cmd.Flags().BoolVar(&o.EnableGZIPEncoding, "enable-gzip-encoding", false, "Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.")
141-
o.cmd.Flags().BoolVar(&o.EnableUnscheduledPodsFetching, "enable-unscheduled-pods-fetching", false, "This configuration is used in conjunction with node configuration. When this configuration is true, node configuration is empty and the metric of no scheduled pods is scraped. This is experimental.")
141+
o.cmd.Flags().BoolVar(&o.EnableUnscheduledPodsFetching, "enable-unscheduled-pods-fetching", false, "This configuration is used in conjunction with node configuration. When this configuration is true, node configuration is empty and the metric of unscheduled pods is fetched from the Kubernetes API Server. This is experimental.")
142142
o.cmd.Flags().BoolVarP(&o.Help, "help", "h", false, "Print Help text")
143143
o.cmd.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.")
144144
o.cmd.Flags().Int32Var(&o.Shard, "shard", int32(0), "The instances shard nominal (zero indexed) within the total number of shards. (default 0)")

0 commit comments

Comments
 (0)