Skip to content

Commit

Permalink
fix: kube-ovn-controller cannot be ready when ENABLE_METRICS is false
Browse files Browse the repository at this point in the history
Signed-off-by: zcq98 <[email protected]>
  • Loading branch information
zhaocongqi committed Dec 23, 2024
1 parent 3245c91 commit 270b55e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ func CmdMain() {
}()
}

if !config.EnableMetrics {
return
}
metrics.InitKlogMetrics()
metrics.InitClientGoMetrics()
addr := util.JoinHostPort(metricsAddr, config.PprofPort)
Expand Down

0 comments on commit 270b55e

Please sign in to comment.