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: add json logging for keycloak #610

Merged
merged 3 commits into from
Jul 26, 2024
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
5 changes: 4 additions & 1 deletion src/keycloak/chart/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ spec:
# This will only import the realm if it does not exist
- "--import-realm"
- "--features=preview"
{{- if .Values.jsonLogFormat }}
- "--log-console-output=json"
{{- end }}
envFrom:
- secretRef:
name: {{ include "keycloak.fullname" . }}-realm-env
name: {{ include "keycloak.fullname" . }}-realm-env
env:
# Common configuration
- name: UDS_DOMAIN
Expand Down
3 changes: 3 additions & 0 deletions src/keycloak/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ devMode: true
# Enable debug logging for keycloak and quarkus
debugMode: false

# Enable JSON logging format for Keycloak
jsonLogFormat: true

# Enable SMTP networkPolicy and config
smtp:
enabled: false
Expand Down