Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Jun 3, 2024
1 parent b0e9467 commit 8a079e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import (
kuadrantv1alpha1 "github.com/kuadrant/kuadrant-operator/api/v1alpha1"
kuadrantv1beta1 "github.com/kuadrant/kuadrant-operator/api/v1beta1"
kuadrantv1beta2 "github.com/kuadrant/kuadrant-operator/api/v1beta2"
"github.com/kuadrant/kuadrant-operator/pkg/library/fieldindexers"
"github.com/kuadrant/kuadrant-operator/pkg/library/kuadrant"
"github.com/kuadrant/kuadrant-operator/pkg/library/reconcilers"
)
Expand Down Expand Up @@ -104,6 +105,12 @@ func SetupKuadrantOperatorForTest(s *runtime.Scheme, cfg *rest.Config) {
})
Expect(err).ToNot(HaveOccurred())

err = fieldindexers.HTTPRouteIndexByGateway(
mgr,
log.Log.WithName("kuadrant").WithName("indexer").WithName("routeIndexByGateway"),
)
Expect(err).ToNot(HaveOccurred())

authPolicyBaseReconciler := reconcilers.NewBaseReconciler(
mgr.GetClient(), mgr.GetScheme(), mgr.GetAPIReader(),
log.Log.WithName("authpolicy"),
Expand Down

0 comments on commit 8a079e5

Please sign in to comment.