We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa46e55 + 74900ec commit 991b6ebCopy full SHA for 991b6eb
main.go
@@ -416,15 +416,15 @@ func setupTelemetryServices(opts telemetryOptions) {
416
}
417
418
func setupManager(options ctrl.Options) (ctrl.Manager, error) {
419
+ if options.Metrics.BindAddress != "0" {
420
+ options.Metrics.ExtraHandlers = map[string]http.Handler{"/server-metrics": promhttp.Handler()}
421
+ }
422
+
423
mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), options)
424
if err != nil {
425
return nil, err
426
427
- if options.Metrics.BindAddress != "0" {
- options.Metrics.ExtraHandlers = map[string]http.Handler{"/server-metrics": promhttp.Handler()}
- }
-
428
if options.HealthProbeBindAddress != "0" {
429
if err := mgr.AddHealthzCheck("ping", healthz.Ping); err != nil {
430
0 commit comments