github.com/loafoe/helm@v1.0.1/cmd/helm/testdata/testcharts/chart-with-template-lib-dep/charts/common/templates/_metadata_annotations.tpl (about) 1 {{- /* 2 common.hook defines a hook. 3 4 This is to be used in a 'metadata.annotations' section. 5 6 This should be called as 'template "common.metadata.hook" "post-install"' 7 8 Any valid hook may be passed in. Separate multiple hooks with a ",". 9 */ -}} 10 {{- define "common.hook" -}} 11 "helm.sh/hook": {{printf "%s" . | quote}} 12 {{- end -}} 13 14 {{- define "common.annotate" -}} 15 {{- range $k, $v := . }} 16 {{ $k | quote }}: {{ $v | quote }} 17 {{- end -}} 18 {{- end -}}