vitalied | 1e5876c | 2018-03-29 10:24:27 -0500 | [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 | {{ toYaml .Values.externalConfig | indent 4 }} |
| 18 | {{- end -}} |