What's Changed
- chore(deps): update golangci/golangci-lint-action action to v5 by @renovate in #84
- feat(defaults): add extractor for default roles, add default groups by @Breee in #86
Full Changelog: v0.17.0...v0.18.0
New ressources:
DefaultGroups
:
---
apiVersion: realm.keycloak.crossplane.io/v1alpha1
kind: Realm
metadata:
name: my-realm
spec:
forProvider:
enabled: true
realm: my-realm
providerConfigRef:
name: keycloak-provider-config
---
apiVersion: openidclient.keycloak.crossplane.io/v1alpha1
kind: Client
metadata:
name: test
spec:
forProvider:
realmIdRef:
name: "my-realm"
accessType: "CONFIDENTIAL"
clientId: "test"
serviceAccountsEnabled: false
providerConfigRef:
name: "keycloak-provider-config"
---
apiVersion: role.keycloak.crossplane.io/v1alpha1
kind: Role
metadata:
name: my-realm-role
spec:
forProvider:
description: My Realm Role
name: my-realm-role
realmIdRef:
name: my-realm
providerConfigRef:
name: keycloak-provider-config
---
apiVersion: role.keycloak.crossplane.io/v1alpha1
kind: Role
metadata:
name: my-client-role
spec:
forProvider:
description: My Client Role
name: my-client-role
realmIdRef:
name: my-realm
clientIdRef:
name: test
providerConfigRef:
name: keycloak-provider-config
---
apiVersion: group.keycloak.crossplane.io/v1alpha1
kind: Group
metadata:
name: my-group
spec:
forProvider:
name: my-group
realmIdRef:
name: my-realm
providerConfigRef:
name: keycloak-provider-config
---
# Example Role mapping: Using groupId and roleIds to assign roles to the default group
apiVersion: group.keycloak.crossplane.io/v1alpha1
kind: Roles
metadata:
name: dev-group-roles
spec:
forProvider:
realmIdRef:
name: my-realm
groupIdRef:
name: my-group
roleIdsRefs:
- name: my-realm-role
- name: my-client-role
providerConfigRef:
name: keycloak-provider-config
---
apiVersion: defaults.keycloak.crossplane.io/v1alpha1
kind: DefaultGroups
metadata:
name: default
spec:
forProvider:
groupIdsRefs:
- name: my-group
realmIdRef:
name: my-realm
providerConfigRef:
name: keycloak-provider-config