Skip to content

Commit

Permalink
Register the API types with the API resolver's runtime scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Apr 22, 2024
1 parent 39b6ee3 commit 50405c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/provider/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 50405c1

Please sign in to comment.