github.com/qsis/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/lib-chart/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.kubernetes.io/name: {{ template "common.name" . }}
    13      app.kubernetes.io/instance: {{ .Release.Name | quote }}
    14  {{- end -}}
    15  {{- define "common.service" -}}
    16  {{- template "common.util.merge" (append . "common.service.tpl") -}}
    17  {{- end -}}