Skip to content

Commit

Permalink
controllers: update to new ctrl manager options
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur authored and ShyamsundarR committed Jan 12, 2024
1 parent 9872118 commit bd1de0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions controllers/volsync/volsync_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
metrics "sigs.k8s.io/controller-runtime/pkg/metrics/server"

volsyncv1alpha1 "github.com/backube/volsync/api/v1alpha1"
"github.com/ramendr/ramen/controllers/util"
Expand Down Expand Up @@ -108,8 +109,10 @@ var _ = BeforeSuite(func() {
Expect(err).NotTo(HaveOccurred())

k8sManager, err := ctrl.NewManager(cfg, ctrl.Options{
Scheme: scheme.Scheme,
MetricsBindAddress: "0",
Scheme: scheme.Scheme,
Metrics: metrics.Options{
BindAddress: "0",
},
})
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit bd1de0c

Please sign in to comment.