From 37a4e701a2548b2e7f9084b809c89f495c243dd0 Mon Sep 17 00:00:00 2001 From: Krzysztof Opasiak Date: Mon, 25 May 2020 22:22:33 +0200 Subject: [CLAMP] Allow to use ' in clamp mariadb passwords ' is one of characters that are placed in passwords by our default password generation algorith. As ' is a special character in SQL files we need to escape it before substituting environment variables in .sql file. Issue-ID: OOM-2317 Reported-by: Fiachra Corcoran Signed-off-by: Krzysztof Opasiak Change-Id: I0423b0eaecf7cc16892c10b14881c4d09a24a1d0 --- kubernetes/clamp/charts/mariadb/templates/configmap.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'kubernetes/clamp/charts/mariadb/templates/configmap.yaml') diff --git a/kubernetes/clamp/charts/mariadb/templates/configmap.yaml b/kubernetes/clamp/charts/mariadb/templates/configmap.yaml index 522c5f9bf8..01420aa97b 100644 --- a/kubernetes/clamp/charts/mariadb/templates/configmap.yaml +++ b/kubernetes/clamp/charts/mariadb/templates/configmap.yaml @@ -39,4 +39,17 @@ metadata: heritage: {{ .Release.Service }} data: {{ tpl (.Files.Glob "resources/config/mariadb/conf.d/conf1/*").AsConfig . | indent 2 }} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.fullname" . }} + namespace: {{ include "common.namespace" . }} + labels: + app: {{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ include "common.release" . }} + heritage: {{ .Release.Service }} +data: +{{ tpl (.Files.Glob "resources/config/init/*").AsConfig . | indent 2 }} #{{ end }} -- cgit 1.2.3-korg