summaryrefslogtreecommitdiffstats
path: root/kubernetes/platform/components/keycloak-init/templates/secret.yaml
blob: 0d9b387dfad504a2e467142d75d5dfa225dde8b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
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 }}
{{- with .Files.Glob "resources/realms/*json" }}
data:
{{- range $path, $bytes := . }}
  {{ base $path }}: {{ tpl ($.Files.Get $path) $ | b64enc | quote }}
{{- end }}
{{- end }}