github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/lib-chart/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.annote" -}}
    15  {{- range $k, $v := . }}
    16  {{ $k | quote }}: {{ $v | quote }}
    17  {{- end -}}
    18  {{- end -}}