mirror of
https://github.com/bitnami/charts.git
synced 2026-08-10 14:15:55 +08:00
[stable/mysql] Avoid creating initialization config-map if not needed
Signed-off-by: tompizmor <tompizmor@gmail.com>
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user