github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/chart-with-template-lib-dep/charts/common/templates/_container.yaml (about)

     1  {{- define "common.container.tpl" -}}
     2  name: {{ .Chart.Name }}
     3  image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
     4  imagePullPolicy: {{ .Values.image.pullPolicy }}
     5  ports:
     6  - name: http
     7    containerPort: 80
     8  resources:
     9  {{ toYaml .Values.resources | indent 2 }}
    10  {{- end -}}
    11  {{- define "common.container" -}}
    12  {{- /* clear new line so indentation works correctly */ -}}
    13  {{- println "" -}}
    14  {{- include "common.util.merge" (append . "common.container.tpl") | indent 8 -}}
    15  {{- end -}}