Skip to content

Commit

Permalink
Mount each provider separately
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Hajas <mhajas@redhat.com>
  • Loading branch information
mhajas committed Feb 19, 2024
1 parent 8d58b83 commit e1d0969
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions provision/keycloak-tasks/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ tasks:
default:
cmds:
- task: utils:install-keycloak
uninstall:
cmds:
- task: utils:uninstall-keycloak
12 changes: 9 additions & 3 deletions provision/minikube/keycloak/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ spec:
key: {{ base .Values.infinispan.configFile }} # <1>
# end::keycloak-ispn[]
{{- end }}
{{ if .Values.useAWSJDBCWrapper }}
transaction:
xaEnabled: false
{{ end }}
# tag::keycloak-ispn[]
additionalOptions:
# end::keycloak-ispn[]
Expand Down Expand Up @@ -137,8 +141,6 @@ spec:
{{ if .Values.useAWSJDBCWrapper }}
- name: db-driver
value: software.amazon.jdbc.Driver
- name: transaction-xa-enabled
value: 'false'
{{ end }}
http:
tlsSecret: keycloak-tls-secret
Expand Down Expand Up @@ -253,9 +255,13 @@ spec:
# command:
# - 'true'
volumeMounts:
{{- range $path, $size := .Files.Glob "providers/**" }}
{{- $name := base $path }}
- name: keycloak-providers
mountPath: /opt/keycloak/providers/mounted-providers
mountPath: /opt/keycloak/providers/{{ $name }}
subPath: {{ $name }}
readOnly: true
{{- end -}}
{{ if .Values.infinispan.jgroupsTls }}
- name: cache-embedded-mtls-volume
mountPath: /etc/cache-embedded-mtls
Expand Down

0 comments on commit e1d0969

Please sign in to comment.