Skip to content

Commit 658c083

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 29bf56f commit 658c083

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
@@ -1,3 +1,9 @@
1+
# Enable the Keycloak Organizations feature for the `cozy` realm.
2+
# Mapped to ClusterKeycloakRealm.spec.organizationsEnabled. Defaults to
3+
# false to preserve the current behaviour; set to true to manage
4+
# organizations (and KeycloakOrganization resources) in the realm.
5+
organizationsEnabled: false
6+
17
# login:
28
# userRegistration: false
39
# verifyEmail: false

0 commit comments

Comments
 (0)