diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-05-25 22:22:33 +0200 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-05-25 22:22:33 +0200 |
commit | 37a4e701a2548b2e7f9084b809c89f495c243dd0 (patch) | |
tree | 43fe7e648a7531e40ee83442f178647e84c63787 /kubernetes/clamp/charts/mariadb/templates/deployment.yaml | |
parent | b0a2d3b3628166dc2dba34a6984cc36b8f821fe0 (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: OOM-2317
Reported-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I0423b0eaecf7cc16892c10b14881c4d09a24a1d0
Diffstat (limited to 'kubernetes/clamp/charts/mariadb/templates/deployment.yaml')
-rw-r--r-- | kubernetes/clamp/charts/mariadb/templates/deployment.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kubernetes/clamp/charts/mariadb/templates/deployment.yaml b/kubernetes/clamp/charts/mariadb/templates/deployment.yaml index 7d22930b6a..b6af4e3d0b 100644 --- a/kubernetes/clamp/charts/mariadb/templates/deployment.yaml +++ b/kubernetes/clamp/charts/mariadb/templates/deployment.yaml @@ -61,6 +61,9 @@ spec: - name: MYSQL_DATABASE value: {{ tpl .Values.db.databaseName .}} volumeMounts: + - mountPath: /docker-entrypoint.sh + subPath: docker-entrypoint.sh + name: init-script - mountPath: /etc/localtime name: localtime readOnly: true @@ -97,5 +100,9 @@ spec: - name: localtime hostPath: path: /etc/localtime + - name: init-script + configMap: + name: {{ include "common.fullname" . }} + defaultMode: 0755 imagePullSecrets: - name: "{{ include "common.namespace" . }}-docker-registry-key" |