Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extend clients CRD #5

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/keycloak-realm-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: keycloak-realm-operator
description: A k8s operator to manage Keycloak realms, their config and clients
type: application
version: 0.0.29
appVersion: 0.0.19
version: 0.0.30
appVersion: 0.0.20
28 changes: 22 additions & 6 deletions charts/keycloak-realm-operator/templates/crds/client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
type: object
properties:
realmId:
realm:
type: string
clientId:
type: string
Expand Down Expand Up @@ -46,20 +46,36 @@ spec:
required:
- secretKeyRef
description: Secret configuration for the client
pruneClient:
prune:
type: boolean
default: false
description: Whether or not to delete the client in Keycloak when the CR is deleted
claimClient:
claim:
type: boolean
default: false
description: Whether or not to claim management of the client if it already exists in Keycloak when the CR is created
recreateOnClaim:
type: boolean
scopes:
type: object
properties:
default:
type: array
items:
type: string
optional:
type: array
items:
type: string
items:
type: string
description: Scopes that are granted to the client
representation:
type: object
x-kubernetes-preserve-unknown-fields: true
description: Client representation following the ClientRepresentation spec
required:
- realmId
- realm
- clientId
status:
type: object
Expand All @@ -75,10 +91,10 @@ spec:
subresources:
status: {}
additionalPrinterColumns:
- name: RealmId
- name: Realm
type: string
description: The id of the realm
jsonPath: .spec.realmId
jsonPath: .spec.realm
- name: ClientId
type: string
description: The id of the client
Expand Down
2 changes: 1 addition & 1 deletion charts/keycloak-realm-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ resources:
limits:
cpu: 100m
memory: 512Mi
operatorImage: ghcr.io/rightcrowd/keycloak-realm-operator:0.0.19
genericCrds:
- kind: KeycloakClientScope
plural: keycloakclientscopes
Expand All @@ -23,3 +22,4 @@ genericCrds:
short: kcgp
group: k8s.rightcrowd.com
version: v1alpha1
operatorImage: ghcr.io/rightcrowd/keycloak-realm-operator:0.0.20