From 9e8f2aafda23d43585b5c4f8294ee22eba61d71e Mon Sep 17 00:00:00 2001 From: k8s-infra-cherrypick-robot <90416843+k8s-infra-cherrypick-robot@users.noreply.github.com> Date: Wed, 18 Sep 2024 07:26:44 -0700 Subject: [PATCH] update doc to include --http-endpoint (#2667) Co-authored-by: jichenjc --- cmd/cinder-csi-plugin/main.go | 2 +- docs/cinder-csi-plugin/using-cinder-csi-plugin.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/cinder-csi-plugin/main.go b/cmd/cinder-csi-plugin/main.go index c257bce9da..e59502a5cc 100644 --- a/cmd/cinder-csi-plugin/main.go +++ b/cmd/cinder-csi-plugin/main.go @@ -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) diff --git a/docs/cinder-csi-plugin/using-cinder-csi-plugin.md b/docs/cinder-csi-plugin/using-cinder-csi-plugin.md index 7cb98fe32b..4bcb1eaeed 100644 --- a/docs/cinder-csi-plugin/using-cinder-csi-plugin.md +++ b/docs/cinder-csi-plugin/using-cinder-csi-plugin.md @@ -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. + +
--http-endpoint <HTTP server>
+
+ 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. +
+ ## Driver Config