# helm_charts_redis-ha-exporter-script-configmap.yaml
{{- if .Values.exporter.script }}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "redis-ha.fullname" . }}-exporter-script-configmap
  namespace: {{ .Release.Namespace }}
  labels:
{{ include "labels.standard" . | indent 4 }}
data:
  script: {{ toYaml .Values.exporter.script | indent 2 }}
{{- end }}