{{- if .Values.service.enabled -}} apiVersion: v1 kind: Service metadata: name: {{ include "koodo-reader.fullname" . }} labels: {{- include "koodo-reader.labels" . | nindent 4 }} {{- with .Values.service.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http {{- if .Values.webdav.enabled }} - port: {{ .Values.webdav.port }} targetPort: data-server protocol: TCP name: webdav {{- end }} selector: {{- include "koodo-reader.selectorLabels" . | nindent 4 }} {{- end }}