mirror of
https://github.com/bitnami/charts.git
synced 2026-03-10 15:07:49 +08:00
* Move charts from upstreamed folder to bitnami Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Remove root .helmignore Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Bump charts version Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Remove file added by error Signed-off-by: Carlos Rodriguez Hernandez <crhernandez@bitnami.com> * Update Chart.yaml
25 lines
824 B
YAML
25 lines
824 B
YAML
{{- if and (or (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql,sql.gz}") .Values.initdbScripts) (not .Values.initdbScriptsConfigMap) }}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "postgresql.fullname" . }}-init-scripts
|
|
labels:
|
|
app: {{ template "postgresql.name" . }}
|
|
chart: {{ template "postgresql.chart" . }}
|
|
release: {{ .Release.Name | quote }}
|
|
heritage: {{ .Release.Service | quote }}
|
|
{{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.sql.gz" }}
|
|
binaryData:
|
|
{{- range $path, $bytes := . }}
|
|
{{ base $path }}: {{ $.Files.Get $path | b64enc | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
data:
|
|
{{- with .Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql}" }}
|
|
{{ .AsConfig | indent 2 }}
|
|
{{- end }}
|
|
{{- with .Values.initdbScripts }}
|
|
{{ toYaml . | indent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|