mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* [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>
16 lines
479 B
YAML
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 }}
|