| 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: |- |
| [mysqld] |
| lower_case_table_names = 1 |
| |
| #{{ toYaml .Values.externalConfig | indent 4 }} |
| #{{- end -}} |