Skip to content

Commit a9ec8a6

Browse files
author
Noah Perks Sloan
committed
fix: remove dots in flag names
1 parent fad7caf commit a9ec8a6

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/cli-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Usage of ./kube-state-metrics:
2828
--add_dir_header If true, adds the file directory to the header of the log messages
2929
--alsologtostderr log to standard error as well as files
3030
--apiserver string The URL of the apiserver to use as a master
31-
--custom-resource-state.config Inline YAML configuration for Custom Resource State metrics. See documentation for more details.
32-
--custom-resource-state.config-file Path to a YAML file to configure Custom Resource State metrics.
31+
--custom-resource-state-config Inline YAML configuration for Custom Resource State metrics. See documentation for more details.
32+
--custom-resource-state-config-file Path to a YAML file to configure Custom Resource State metrics.
3333
--enable-gzip-encoding Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.
3434
-h, --help Print Help text
3535
--host string Host to expose metrics on. (default "::")

docs/customresourcestate-metrics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ A YAML configuration file described below is required to define your custom reso
99

1010
Two flags can be used:
1111

12-
* `--custom-resource-state.config "inline yaml (see example)"` or
13-
* `--custom-resource-state.config-file /path/to/config.yaml`
12+
* `--custom-resource-state-config "inline yaml (see example)"` or
13+
* `--custom-resource-state-config-file /path/to/config.yaml`
1414

1515
If both flags are provided, the inline configuration will take precedence.
1616

@@ -26,7 +26,7 @@ spec:
2626
containers:
2727
- name: kube-state-metrics
2828
args:
29-
- --custom-resource-state.config
29+
- --custom-resource-state-config
3030
# in YAML files, | allows a multi-line string to be passed as a flag value
3131
# see https://yaml-multiline.info
3232
- |

pkg/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ func (o *Options) AddFlags() {
115115
o.flags.BoolVarP(&o.Version, "version", "", false, "kube-state-metrics build version information")
116116
o.flags.BoolVar(&o.EnableGZIPEncoding, "enable-gzip-encoding", false, "Gzip responses when requested by clients via 'Accept-Encoding: gzip' header.")
117117

118-
o.flags.StringVar(&o.CustomResourceConfig, "custom-resource-state.config", "", "Inline Custom Resource State Metrics config YAML")
119-
o.flags.StringVar(&o.CustomResourceConfigFile, "custom-resource-state.config-file", "", "Path to a Custom Resource State Metrics config file")
118+
o.flags.StringVar(&o.CustomResourceConfig, "custom-resource-state-config", "", "Inline Custom Resource State Metrics config YAML")
119+
o.flags.StringVar(&o.CustomResourceConfigFile, "custom-resource-state-config-file", "", "Path to a Custom Resource State Metrics config file")
120120
}
121121

122122
// Parse parses the flag definitions from the argument list.

0 commit comments

Comments
 (0)