{{- if .Values.customScripts }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "mariadb.fullname" . }}-customscripts
  labels:
    {{- include "mariadb.labels" . | nindent 4 }}
data:
  {{- range $name, $value := .Values.customScripts }}
  {{- $name | nindent 2 }}: |
    {{- $value | nindent 4 }}
  {{- end }}
{{- end }}
