Skip to content

Commit 4214cfd

Browse files
feat(keycloak): expose organizationsEnabled realm toggle
The keycloak-configure chart hardcoded the realm with the Organizations feature off, with no value to enable it. Operators who flip organizationsEnabled in the Keycloak admin console see it reverted on the next ClusterKeycloakRealm reconcile, since the EDP operator pushes the chart-rendered spec back to the realm. Expose organizationsEnabled in values.yaml (default false, no behaviour change) and map it to ClusterKeycloakRealm.spec.organizationsEnabled so the feature can be enabled declaratively and survive reconciles. Assisted-By: Claude <[email protected]> Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Signed-off-by: mattia-eleuteri <[email protected]>
1 parent f91841f commit 4214cfd

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎packages/system/keycloak-configure/templates/configure-kk.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ metadata:
2727
spec:
2828
realmName: cozy
2929
clusterKeycloakRef: keycloak-cozy
30+
organizationsEnabled: {{ .Values.organizationsEnabled | default false }}
3031
{{- if $brandingConfig }}
3132
{{- if hasKey $brandingConfig "brandName" }}
3233
displayName: {{ $brandingConfig.brandName }}

‎packages/system/keycloak-configure/values.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# to track the Keycloak server major version (packages/system/keycloak).
44
image: quay.io/keycloak/keycloak:26.5.2
55

6+
# Enable the Keycloak Organizations feature for the `cozy` realm.
7+
# Mapped to ClusterKeycloakRealm.spec.organizationsEnabled. Defaults to
8+
# false to preserve the current behaviour; set to true to manage
9+
# organizations (and KeycloakOrganization resources) in the realm.
10+
organizationsEnabled: false
11+
612
# login:
713
# userRegistration: false
814
# verifyEmail: false

0 commit comments

Comments
 (0)