Andreas Geissler | dce54c8 | 2023-03-20 13:07:32 +0100 | [diff] [blame^] | 1 | --- |
| 2 | apiVersion: v1 |
| 3 | kind: Secret |
| 4 | metadata: |
| 5 | name: keycloak-config-cli-config-realms |
| 6 | namespace: {{ include "common.namespace" . }} |
| 7 | labels: |
| 8 | app: {{ include "common.name" . }} |
| 9 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 10 | release: {{ include "common.release" . }} |
| 11 | heritage: {{ .Release.Service }} |
| 12 | {{- with .Files.Glob "resources/realms/*json" }} |
| 13 | data: |
| 14 | {{- range $path, $bytes := . }} |
| 15 | {{ base $path }}: {{ tpl ($.Files.Get $path) $ | b64enc | quote }} |
| 16 | {{- end }} |
| 17 | {{- end }} |