aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/authentication/templates/secret.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/authentication/templates/secret.yaml')
-rw-r--r--kubernetes/authentication/templates/secret.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/kubernetes/authentication/templates/secret.yaml b/kubernetes/authentication/templates/secret.yaml
new file mode 100644
index 0000000000..1488be6969
--- /dev/null
+++ b/kubernetes/authentication/templates/secret.yaml
@@ -0,0 +1,16 @@
+---
+apiVersion: v1
+kind: Secret
+metadata:
+ name: keycloak-config-cli-config-realms
+ namespace: {{ include "common.namespace" . }}
+ labels:
+ app: {{ include "common.name" . }}
+ chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+ release: {{ include "common.release" . }}
+ heritage: {{ .Release.Service }}
+data:
+{{- $dot := . }}
+{{- range $realm := .Values.realmSettings }}
+ {{ $realm.name }}: {{ include "auth.realm" (dict "dot" $dot "realm" $realm) | fromYaml | toPrettyJson | indent 2 | b64enc | quote }}
+{{- end -}}