Skip to content

Commit

Permalink
update doc to include --http-endpoint (#2476)
Browse files Browse the repository at this point in the history
  • Loading branch information
jichenjc committed Nov 22, 2023
1 parent aefd014 commit 637a3d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cinder-csi-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
}

cmd.PersistentFlags().StringVar(&cluster, "cluster", "", "The identifier of the cluster that the plugin is running in.")
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.")
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.")
openstack.AddExtraFlags(pflag.CommandLine)

code := cli.Run(cmd)
Expand Down
10 changes: 10 additions & 0 deletions docs/cinder-csi-plugin/using-cinder-csi-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ In addition to the standard set of klog flags, `cinder-csi-plugin` accepts the f

This will be added as metadata to every Cinder volume created by this plugin.
</dd>

<dt>--http-endpoint &lt;HTTP server&gt;</dt>
<dd>
This argument is optional.

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.
</dd>

</dl>

## Driver Config
Expand Down

0 comments on commit 637a3d4

Please sign in to comment.