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

     1  {{- define "common.service.tpl" -}}
     2  apiVersion: v1
     3  kind: Service
     4  {{ template "common.metadata" . }}
     5  spec:
     6    type: {{ .Values.service.type }}
     7    ports:
     8    - name: http
     9      port: 80
    10      targetPort: http
    11    selector:
    12      app: {{ template "common.name" . }}
    13      release: {{ .Release.Name | quote }}
    14  {{- end -}}
    15  {{- define "common.service" -}}
    16  {{- template "common.util.merge" (append . "common.service.tpl") -}}
    17  {{- end -}}