[stable/mysql] Avoid creating initialization config-map if not needed

Signed-off-by: tompizmor <tompizmor@gmail.com>
This commit is contained in:
tompizmor
2018-10-08 17:10:01 +02:00
parent acf183c183
commit e2894cbed2
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mysql
version: 4.0.5
version: 4.0.6
appVersion: 5.7.23
description: Chart to create a Highly available MySQL cluster
keywords:
@@ -1,3 +1,4 @@
{{ if (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]") }}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -9,4 +10,5 @@ metadata:
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
data:
{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*").AsConfig | indent 2 }}
{{ (.Files.Glob "files/docker-entrypoint-initdb.d/*[sh|sql|sql.gz]").AsConfig | indent 2 }}
{{ end }}