Files
Mikhail Zholobov 8299179ca6 [stable/spinnaker] Use "tpl" function to render the content of additional scripts (#13045)
* [stable/spinnaker] Use "tpl" function to render the content of additional scripts and init scripts

This allows to use variable interpolation in the body of these scripts.

Signed-off-by: Mikhail Zholobov <legal90@gmail.com>

* [stable/spinnaker] Bump chart version

Signed-off-by: Mikhail Zholobov <legal90@gmail.com>

* [stable/spinnaker] Update README.md

Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
2019-05-21 01:46:41 -07:00

16 lines
479 B
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 }}