# helm_charts_additional-scripts.yaml
{{ if .Values.halyard.additionalScripts.create -}}
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ template "spinnaker.fullname" . }}-additional-scripts
  labels:
{{ include "spinnaker.standard-labels" . | indent 4 }}
data:
{{- if  and .Values.halyard.additionalScripts.create .Values.halyard.additionalScripts.data }}
{{- range $index, $content := .Values.halyard.additionalScripts.data }}
  {{ $index }}: |-
{{ tpl $content $ | indent 4 }}
{{- end }}
{{- end }}
{{- end }}