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)