github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/lib-chart/templates/_deployment.yaml (about) 1 {{- define "common.deployment.tpl" -}} 2 apiVersion: extensions/v1beta1 3 kind: Deployment 4 {{ template "common.metadata" . }} 5 spec: 6 template: 7 metadata: 8 labels: 9 app.kubernetes.io/name: {{ template "common.name" . }} 10 app.kubernetes.io/instance: {{ .Release.Name | quote }} 11 spec: 12 containers: 13 - 14 {{ include "common.container.tpl" . | indent 8 }} 15 {{- end -}} 16 {{- define "common.deployment" -}} 17 {{- template "common.util.merge" (append . "common.deployment.tpl") -}} 18 {{- end -}}