Skip to content

Commit

Permalink
[v3io-keycloak] Change Realms Config to use Secret instead of Config …
Browse files Browse the repository at this point in the history
…Map (#985)
  • Loading branch information
quaark authored and Liran BG committed Oct 31, 2023
1 parent 4f552ef commit ec3473c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion stable/v3io-keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: v3io-keycloak
version: 0.2.1
version: 0.2.2
appVersion: 20.0.5
description: Keycloak With V3IO MySQL Database
maintainers:
Expand Down
6 changes: 3 additions & 3 deletions stable/v3io-keycloak/templates/realms-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{- if .Values.keycloak.createRealmsConfigMap -}}
{{- if .Values.keycloak.createRealmsSecret -}}
apiVersion: v1
kind: ConfigMap
kind: Secret
metadata:
name: {{ .Values.keycloak.realmsConfigMap }}
name: {{ .Values.keycloak.realmsSecret }}
labels:
{{ include "v3io-keycloak.labels" . | nindent 4 }}
data:
Expand Down
10 changes: 5 additions & 5 deletions stable/v3io-keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ keycloak:
- name: KEYCLOAK_DATABASE_VENDOR
value: mysql
- name: KEYCLOAK_EXTRA_ARGS
value: "-Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=/realm_config/realms.json"
value: "-Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.strategy=IGNORE_EXISTING -Dkeycloak.migration.file=/realm_config/realms.json"

createRealmsConfigMap: true
realmsConfigMap: v3io-keycloak-realms
createRealmsSecret: true
realmsSecret: v3io-keycloak-realms
extraVolumes: |
- name: realms
configMap:
name: {{ .Values.realmsConfigMap }}
secret:
secretName: {{ .Values.realmsSecret }}
extraVolumeMounts:
- name: realms
Expand Down

0 comments on commit ec3473c

Please sign in to comment.