From 7b2b7986967e7f3f4afbd5bb5333faefa500af72 Mon Sep 17 00:00:00 2001 From: Peter Turi Date: Wed, 7 Aug 2024 12:57:33 +0200 Subject: [PATCH] fix: expose feature repo As that is required by the cloud codebase if we want to move to the registry approach. --- internal/registry/builder/entitlement.go | 1 + internal/registry/entitlement.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/registry/builder/entitlement.go b/internal/registry/builder/entitlement.go index fe501d036..121862fef 100644 --- a/internal/registry/builder/entitlement.go +++ b/internal/registry/builder/entitlement.go @@ -64,6 +64,7 @@ func GetEntitlementRegistry(opts registry.EntitlementOptions) *registry.Entitlem return ®istry.Entitlement{ Feature: featureConnector, + FeatureRepo: featureDBAdapter, EntitlementOwner: entitlementOwnerConnector, CreditBalance: creditBalanceConnector, Grant: grantConnector, diff --git a/internal/registry/entitlement.go b/internal/registry/entitlement.go index 37c6f2b82..7841722ff 100644 --- a/internal/registry/entitlement.go +++ b/internal/registry/entitlement.go @@ -15,6 +15,7 @@ import ( type Entitlement struct { Feature productcatalog.FeatureConnector + FeatureRepo productcatalog.FeatureRepo EntitlementOwner credit.OwnerConnector CreditBalance credit.BalanceConnector Grant credit.GrantConnector