From 9e2c280286129c5e6fb51c8793009c1231f9bba8 Mon Sep 17 00:00:00 2001 From: Alper Rifat Ulucinar Date: Mon, 22 Apr 2024 13:01:08 +0300 Subject: [PATCH] Register the API types with the API resolver's runtime scheme Signed-off-by: Alper Rifat Ulucinar --- cmd/provider/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/provider/main.go b/cmd/provider/main.go index 39da9df..8534bcf 100644 --- a/cmd/provider/main.go +++ b/cmd/provider/main.go @@ -34,6 +34,7 @@ import ( "github.com/upbound/provider-azuread/apis" "github.com/upbound/provider-azuread/apis/v1alpha1" "github.com/upbound/provider-azuread/config" + resolverapis "github.com/upbound/provider-azuread/internal/apis" "github.com/upbound/provider-azuread/internal/clients" "github.com/upbound/provider-azuread/internal/controller" "github.com/upbound/provider-azuread/internal/features" @@ -141,6 +142,7 @@ func main() { }) kingpin.FatalIfError(err, "Cannot create controller manager") kingpin.FatalIfError(apis.AddToScheme(mgr.GetScheme()), "Cannot add Azuread APIs to scheme") + kingpin.FatalIfError(resolverapis.BuildScheme(apis.AddToSchemes), "Cannot register the AzureAD APIs with the API resolver's runtime scheme") ctx := context.Background() provider, err := config.GetProvider(ctx, false)