diff --git a/config/openidclient/config.go b/config/openidclient/config.go index 594c852..6acfad7 100644 --- a/config/openidclient/config.go +++ b/config/openidclient/config.go @@ -2,28 +2,33 @@ package openidclient import "github.com/crossplane/upjet/pkg/config" +const ( + // Group is the short group for this provider. + Group = "openidclient" +) + // Configure configures individual resources by adding custom ResourceConfigurators. func Configure(p *config.Provider) { p.AddResourceConfigurator("keycloak_openid_client", func(r *config.Resource) { // We need to override the default group that upjet generated for - r.ShortGroup = "openidclient" + r.ShortGroup = Group }) p.AddResourceConfigurator("keycloak_openid_client_default_scopes", func(r *config.Resource) { // We need to override the default group that upjet generated for - r.ShortGroup = "openidclient" + r.ShortGroup = Group }) p.AddResourceConfigurator("keycloak_openid_client_scope", func(r *config.Resource) { // We need to override the default group that upjet generated for - r.ShortGroup = "openidclient" + r.ShortGroup = Group }) p.AddResourceConfigurator("keycloak_openid_client_service_account_role", func(r *config.Resource) { - r.ShortGroup = "openidclient" + r.ShortGroup = Group }) p.AddResourceConfigurator("keycloak_openid_client_service_account_realm_role", func(r *config.Resource) { - r.ShortGroup = "openidclient" + r.ShortGroup = Group }) }