From f949f2be3b0f6446b6ffe786a7a372e21b415ccc Mon Sep 17 00:00:00 2001 From: Grant Griffiths Date: Thu, 15 Apr 2021 07:27:05 -0700 Subject: [PATCH] Fix metrics server to use httpEndpoint when provided Signed-off-by: Grant Griffiths --- cmd/csi-snapshotter/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csi-snapshotter/main.go b/cmd/csi-snapshotter/main.go index cd71b349..afdfcad2 100644 --- a/cmd/csi-snapshotter/main.go +++ b/cmd/csi-snapshotter/main.go @@ -154,7 +154,7 @@ func main() { metricsManager.SetDriverName(driverName) go func() { klog.Infof("ServeMux listening at %q", addr) - err := http.ListenAndServe(*metricsAddress, mux) + err := http.ListenAndServe(addr, mux) if err != nil { klog.Fatalf("Failed to start HTTP server at specified address (%q) and metrics path (%q): %s", addr, *metricsPath, err) }