Skip to content
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
18 changes: 18 additions & 0 deletions src/keycloak/chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ spec:
mountPath: /opt/keycloak/themes
- name: conf
mountPath: /opt/keycloak/conf
{{- if and .Values.themeCustomizations .Values.themeCustomizations.resources .Values.themeCustomizations.resources.images }}
- name: theme-overrides
mountPath: /opt/keycloak/theme-overrides
{{- end }}
envFrom:
- secretRef:
name: {{ include "keycloak.fullname" . }}-realm-env
Expand Down Expand Up @@ -289,3 +293,17 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if and .Values.themeCustomizations .Values.themeCustomizations.resources .Values.themeCustomizations.resources.images }}
- name: theme-overrides
projected:
sources:
{{- range $image := .Values.themeCustomizations.resources.images }}
{{- if $image.configmap.name }}
- configMap:
name: {{ $image.configmap.name }}
items:
- key: {{ $image.name }}
path: {{ $image.name }}
{{- end }}
{{- end }}
{{- end }}
33 changes: 31 additions & 2 deletions src/keycloak/chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,37 @@
"type": "string"
}
},
"required": [ "name", "value" ]
"required": ["name", "value"]
}
},
"themeCustomizations": {
Comment thread
slaskawi marked this conversation as resolved.
"type": "object",
"properties": {
"resources": {
"type": "object",
"properties": {
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"enum": ["background.jpg", "footer.png", "logo.svg", "favicon.svg"]
},
"configmap": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
17 changes: 17 additions & 0 deletions src/keycloak/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,23 @@ realmAuthFlows:
WEBAUTHN_ENABLED: false
X509_MFA_ENABLED: false

# Theme customizations with allowed types. More info here: https://github.com/defenseunicorns/uds-identity-config/blob/main/docs/reference/UDS%20Core/IdAM/customization.md#branding-customizations
Comment thread
chance-coleman marked this conversation as resolved.
#themeCustomizations:
# resources:
# images:
# - name: background.jpg
# configmap:
# name: keycloak-theme-overrides
# - name: footer.png
# configmap:
# name: keycloak-theme-overrides
# - name: logo.svg
# configmap:
# name: keycloak-theme-overrides
# - name: favicon.svg
# configmap:
# name: keycloak-theme-overrides

# Generates an initial password for first admin user - only use if install is headless
# (i.e. cannot hit keycloak UI with `zarf connect keycloak`), password should be changed after initial login
insecureAdminPasswordGeneration:
Expand Down