github.com/replicatedhq/ship@v0.55.0/integration/failing/update/helm-values-files/expected/.ship/upstream/templates/jenkins-agent-svc.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: {{ template "jenkins.fullname" . }}-agent
     5    labels:
     6      app: {{ template "jenkins.fullname" . }}
     7      chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
     8      component: "{{ .Release.Name }}-{{ .Values.Master.Component }}"
     9  {{- if .Values.Master.SlaveListenerServiceAnnotations }}
    10    annotations:
    11  {{ toYaml .Values.Master.SlaveListenerServiceAnnotations | indent 4 }}
    12  {{- end }}
    13  spec:
    14    ports:
    15      - port: {{ .Values.Master.SlaveListenerPort }}
    16        targetPort: {{ .Values.Master.SlaveListenerPort }}
    17        {{ if (and (eq .Values.Master.SlaveListenerServiceType "NodePort") (not (empty .Values.Master.SlaveListenerPort))) }}
    18        nodePort: {{.Values.Master.SlaveListenerPort}}
    19        {{end}}
    20        name: slavelistener
    21    selector:
    22      component: "{{ .Release.Name }}-{{ .Values.Master.Component }}"
    23    type: {{ .Values.Master.SlaveListenerServiceType }}