Skip to content

Commit

Permalink
new registry
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal committed Feb 29, 2024
1 parent 3603ab4 commit 16dce0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/spinapp_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"testing"
"time"

"github.com/prometheus/client_golang/prometheus"
spinv1 "github.com/spinkube/spin-operator/api/v1"
"github.com/stretchr/testify/require"
appsv1 "k8s.io/api/apps/v1"
Expand All @@ -22,7 +23,6 @@ import (
"sigs.k8s.io/controller-runtime/pkg/envtest"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"
"sigs.k8s.io/controller-runtime/pkg/metrics"
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
)

Expand Down Expand Up @@ -107,7 +107,7 @@ func setupController(t *testing.T) (*envTestState, ctrl.Manager, *SpinAppReconci
Client: envTest.k8sClient,
Scheme: envTest.scheme,
Recorder: mgr.GetEventRecorderFor("spinapp-reconciler"),
MetricsRegistry: metrics.Registry,
MetricsRegistry: prometheus.NewRegistry(),
}

require.NoError(t, ctrlr.SetupWithManager(mgr))
Expand Down

0 comments on commit 16dce0a

Please sign in to comment.