summaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/charts/mariadb/templates/configmap.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-05-25 22:22:33 +0200
committerxuegao <xg353y@intl.att.com>2020-06-25 12:18:33 +0200
commit61af292060d9ddd52f8ac473fe2640e147a416f4 (patch)
treeda953792e040b14bb8ef3210a1e47740e3dfaba7 /kubernetes/clamp/charts/mariadb/templates/configmap.yaml
parentb34e3c934d38900c2137b94d15835621aefcf113 (diff)
[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: CLAMP-878 Reported-by: Fiachra Corcoran <fiachra.corcoran@est.tech> Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Change-Id: I0423b0eaecf7cc16892c10b14881c4d09a24a1d0 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'kubernetes/clamp/charts/mariadb/templates/configmap.yaml')
-rw-r--r--kubernetes/clamp/charts/mariadb/templates/configmap.yaml13
1 files changed, 13 insertions, 0 deletions
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 }}