From 270b55e1c9e834b0acef125b40fbecab02128560 Mon Sep 17 00:00:00 2001 From: zcq98 Date: Mon, 23 Dec 2024 16:34:20 +0800 Subject: [PATCH] fix: kube-ovn-controller cannot be ready when ENABLE_METRICS is false Signed-off-by: zcq98 --- cmd/controller/controller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/controller/controller.go b/cmd/controller/controller.go index 8b0a3ad3414..d3b93efa17b 100644 --- a/cmd/controller/controller.go +++ b/cmd/controller/controller.go @@ -84,9 +84,6 @@ func CmdMain() { }() } - if !config.EnableMetrics { - return - } metrics.InitKlogMetrics() metrics.InitClientGoMetrics() addr := util.JoinHostPort(metricsAddr, config.PprofPort)