Skip to content

Commit

Permalink
cc: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Breee committed Feb 9, 2024
1 parent 77b6425 commit 341521a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions config/openidclient/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}

0 comments on commit 341521a

Please sign in to comment.