Sonsino, Ofir (os0695) | 2dda01d | 2018-05-30 18:41:14 +0300 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: ConfigMap |
| 3 | metadata: |
| 4 | name: {{ include "common.fullname" . }}-confd |
| 5 | namespace: {{ include "common.namespace" . }} |
| 6 | data: |
| 7 | {{ tpl (.Files.Glob "resources/config/mariadb/conf.d/*").AsConfig . | indent 2 }} |
| 8 | --- |
| 9 | {{- if .Values.externalConfig }} |
| 10 | apiVersion: v1 |
| 11 | kind: ConfigMap |
| 12 | metadata: |
| 13 | name: {{ include "common.fullname" . }}-externalconfig |
| 14 | namespace: {{ include "common.namespace" . }} |
| 15 | data: |
| 16 | my_extra.cnf: |- |
| 17 | [mysqld] |
| 18 | lower_case_table_names = 1 |
| 19 | |
| 20 | #{{ toYaml .Values.externalConfig | indent 4 }} |
| 21 | #{{- end -}} |