Skip to content

Commit 9e8f2aa

Browse files
update doc to include --http-endpoint (kubernetes#2667)
Co-authored-by: jichenjc <[email protected]>
1 parent d0d4a1d commit 9e8f2aa

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

cmd/cinder-csi-plugin/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func main() {
6464
}
6565

6666
cmd.PersistentFlags().StringVar(&cluster, "cluster", "", "The identifier of the cluster that the plugin is running in.")
67-
cmd.PersistentFlags().StringVar(&httpEndpoint, "http-endpoint", "", "The TCP network address where the HTTP server for diagnostics, including metrics and leader election health check, will listen (example: `:8080`). The default is empty string, which means the server is disabled.")
67+
cmd.PersistentFlags().StringVar(&httpEndpoint, "http-endpoint", "", "The TCP network address where the HTTP server for providing metrics for diagnostics, will listen (example: `:8080`). The default is empty string, which means the server is disabled.")
6868
openstack.AddExtraFlags(pflag.CommandLine)
6969

7070
code := cli.Run(cmd)

docs/cinder-csi-plugin/using-cinder-csi-plugin.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f
8888

8989
This will be added as metadata to every Cinder volume created by this plugin.
9090
</dd>
91+
92+
<dt>--http-endpoint &lt;HTTP server&gt;</dt>
93+
<dd>
94+
This argument is optional.
95+
96+
The TCP network address where the HTTP server for providing metrics for diagnostics, will listen (example: `:8080`).
97+
98+
The default is empty string, which means the server is disabled.
99+
</dd>
100+
91101
</dl>
92102

93103
## Driver Config

0 commit comments

Comments
 (0)