summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates/configmap.yaml
blob: 094a76cf4555063b8f14eada78d8f03769cc077a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 -}}