mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
this is needed for when helm is used purely as a templating tool, since helm template does not add the namespace https://github.com/helm/helm/issues/3553 Signed-off-by: eduardo aleixo <eduardoaleixomartins@gmail.com>
12 lines
295 B
YAML
12 lines
295 B
YAML
{{- if .Values.initializationFiles }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "mysql.fullname" . }}-initialization
|
|
namespace: {{ .Release.Namespace }}
|
|
data:
|
|
{{- range $key, $val := .Values.initializationFiles }}
|
|
{{ $key }}: |-
|
|
{{ $val | indent 4}}
|
|
{{- end }}
|
|
{{- end -}} |