mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
445 B
19 lines
445 B
{{- /*
|
|
common.hook defines a hook.
|
|
|
|
This is to be used in a 'metadata.annotations' section.
|
|
|
|
This should be called as 'template "common.metadata.hook" "post-install"'
|
|
|
|
Any valid hook may be passed in. Separate multiple hooks with a ",".
|
|
*/ -}}
|
|
{{- define "common.hook" -}}
|
|
"helm.sh/hook": {{printf "%s" . | quote}}
|
|
{{- end -}}
|
|
|
|
{{- define "common.annotate" -}}
|
|
{{- range $k, $v := . }}
|
|
{{ $k | quote }}: {{ $v | quote }}
|
|
{{- end -}}
|
|
{{- end -}}
|