From 1e5876cf4eb41747186fd2eb626005c6ca88e7d1 Mon Sep 17 00:00:00 2001 From: vitalied Date: Thu, 29 Mar 2018 10:24:27 -0500 Subject: Add Common Helm Chart "mariadb-galera" A new common helm chart that will deploy a Galera cluster for MariaDB. Please note that this chart is still work in progress and more features will be added or improved. Change-Id: Ia4487666798f83d2869c35bcfaacc5516068f194 Issue-ID: OOM-758 Signed-off-by: vitalied --- .../common/mariadb-galera/templates/configmap.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kubernetes/common/mariadb-galera/templates/configmap.yaml (limited to 'kubernetes/common/mariadb-galera/templates/configmap.yaml') diff --git a/kubernetes/common/mariadb-galera/templates/configmap.yaml b/kubernetes/common/mariadb-galera/templates/configmap.yaml new file mode 100644 index 0000000000..094a76cf45 --- /dev/null +++ b/kubernetes/common/mariadb-galera/templates/configmap.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.fullname" . }}-confd + namespace: {{ include "common.namespace" . }} +data: +{{ tpl (.Files.Glob "resources/config/mariadb/conf.d/*").AsConfig . | indent 2 }} +--- +{{- if .Values.externalConfig }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "common.fullname" . }}-externalConfig + namespace: {{ include "common.namespace" . }} +data: + my_extra.cnf: |- +{{ toYaml .Values.externalConfig | indent 4 }} +{{- end -}} \ No newline at end of file -- cgit 1.2.3-korg