---
{{- if .Values.wopi.enabled -}}
apiVersion: v1
kind: Service
metadata:
  name: {{ include "oxicloud.fullname" . }}-wopi
  labels:
    {{- include "oxicloud.labels" . | nindent 4 }}
    app.kubernetes.io/component: wopi
spec:
  type: ClusterIP
  ports:
    - port: {{ .Values.wopi.collabora.service.port }}
      targetPort: wopi
      protocol: TCP
      name: wopi
  selector:
    {{- include "oxicloud.selectorLabels" . | nindent 4 }}
    app.kubernetes.io/component: wopi
{{- end }}