mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
rebase: replace MetricsBindAddress with Metrics
MetricsBindAddress is replaced by Metrics in the
controller-runtime manager options in version 0.16.0
as part of
e59161ee8f
Updating the same here.
Signed-off-by: karthik-us <ksubrahm@redhat.com>
This commit is contained in:
parent
a51516501c
commit
855d09c1cd
@ -24,6 +24,7 @@ import (
|
|||||||
clientConfig "sigs.k8s.io/controller-runtime/pkg/client/config"
|
clientConfig "sigs.k8s.io/controller-runtime/pkg/client/config"
|
||||||
"sigs.k8s.io/controller-runtime/pkg/manager"
|
"sigs.k8s.io/controller-runtime/pkg/manager"
|
||||||
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
|
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
|
||||||
|
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Manager is the interface that will wrap Add function.
|
// Manager is the interface that will wrap Add function.
|
||||||
@ -62,7 +63,7 @@ func Start(config Config) error {
|
|||||||
opts := manager.Options{
|
opts := manager.Options{
|
||||||
LeaderElection: true,
|
LeaderElection: true,
|
||||||
// disable metrics
|
// disable metrics
|
||||||
MetricsBindAddress: "0",
|
Metrics: metricsserver.Options{BindAddress: "0"},
|
||||||
LeaderElectionNamespace: config.Namespace,
|
LeaderElectionNamespace: config.Namespace,
|
||||||
LeaderElectionResourceLock: resourcelock.LeasesResourceLock,
|
LeaderElectionResourceLock: resourcelock.LeasesResourceLock,
|
||||||
LeaderElectionID: electionID,
|
LeaderElectionID: electionID,
|
||||||
|
Loading…
Reference in New Issue
Block a user