[stable/mariadb] Allow including gzip files as initdb scripts (#10127)

* [stable/mariadb] Allow including gzip files as initdb scripts

Signed-off-by: juan131 <juan@bitnami.com>

* Increasing Prerequisites on README.md

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2018-12-19 03:00:11 -08:00
committed by Kubernetes Prow Robot
parent aca06900b9
commit 16deaf2326
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mariadb
version: 5.2.4
version: 5.2.5
appVersion: 10.1.37
description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster.
keywords:
+1 -1
View File
@@ -18,7 +18,7 @@ Bitnami charts can be used with [Kubeapps](https://kubeapps.com/) for deployment
## Prerequisites
- Kubernetes 1.4+ with Beta APIs enabled
- Kubernetes 1.10+
- PV provisioner support in the underlying infrastructure
## Installing the Chart
@@ -9,6 +9,11 @@ metadata:
chart: {{ template "mariadb.chart" . }}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
binaryData:
{{- $root := . }}
{{- range $path, $bytes := .Files.Glob "files/docker-entrypoint-initdb.d/*.sql.gz" }}
{{ base $path }}: {{ $root.Files.Get $path | b64enc | quote }}
{{- end }}
data:
{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]").AsConfig | indent 2 }}
{{ end }}
{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*.{sh,sql}").AsConfig | indent 2 }}
{{ end }}