@@ -7,12 +7,6 @@ import (
77 "time"
88
99 configv1 "github.com/openshift/api/config/v1"
10- cnoclient "github.com/openshift/cluster-network-operator/pkg/client"
11- "github.com/openshift/cluster-network-operator/pkg/controller"
12- "github.com/openshift/cluster-network-operator/pkg/controller/connectivitycheck"
13- "github.com/openshift/cluster-network-operator/pkg/controller/statusmanager"
14- "github.com/openshift/cluster-network-operator/pkg/hypershift"
15- "github.com/openshift/cluster-network-operator/pkg/names"
1610 "github.com/openshift/library-go/pkg/controller/controllercmd"
1711 "github.com/openshift/library-go/pkg/operator/loglevel"
1812 "github.com/openshift/library-go/pkg/operator/management"
@@ -24,6 +18,14 @@ import (
2418 "k8s.io/client-go/rest"
2519 "k8s.io/client-go/util/retry"
2620 "k8s.io/klog/v2"
21+ metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
22+
23+ cnoclient "github.com/openshift/cluster-network-operator/pkg/client"
24+ "github.com/openshift/cluster-network-operator/pkg/controller"
25+ "github.com/openshift/cluster-network-operator/pkg/controller/connectivitycheck"
26+ "github.com/openshift/cluster-network-operator/pkg/controller/statusmanager"
27+ "github.com/openshift/cluster-network-operator/pkg/hypershift"
28+ "github.com/openshift/cluster-network-operator/pkg/names"
2729
2830 ctlog "sigs.k8s.io/controller-runtime/pkg/log"
2931 "sigs.k8s.io/controller-runtime/pkg/manager"
@@ -60,7 +62,8 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller
6062 MapperProvider : func (cfg * rest.Config , httpClient * http.Client ) (meta.RESTMapper , error ) {
6163 return o .client .Default ().RESTMapper (), nil
6264 },
63- Logger : klog .Background (),
65+ Metrics : metricsserver.Options {BindAddress : "0" },
66+ Logger : klog .Background (),
6467 })
6568 if err != nil {
6669 return err
0 commit comments