summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates/configmap.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-04-19 14:27:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-19 14:27:32 +0000
commit89623667ec00a4710e2c2b9f77a31d369e62f790 (patch)
tree96c5dc29023f77bd91cf2de412b9da9ff36d7060 /kubernetes/common/mariadb-galera/templates/configmap.yaml
parentdee57fd5c546ee0b68d3e6c003cdc06ada987abe (diff)
parent1e5876cf4eb41747186fd2eb626005c6ca88e7d1 (diff)
Merge "Add Common Helm Chart "mariadb-galera""
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates/configmap.yaml')
-rw-r--r--kubernetes/common/mariadb-galera/templates/configmap.yaml18
1 files changed, 18 insertions, 0 deletions
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