{{- if .Values.httpRoute.enabled }} apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: {{ include "jellyfin.fullname" . }} labels: {{- include "jellyfin.labels" . | nindent 4 }} {{- with .Values.httpRoute.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} spec: {{- with .Values.httpRoute.parentRefs }} parentRefs: {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.httpRoute.hostnames }} hostnames: {{- toYaml . | nindent 4 }} {{- end }} rules: {{- range .Values.httpRoute.rules }} - matches: {{- range .matches }} - path: type: {{ .path.type }} value: {{ .path.value }} {{- end }} backendRefs: - name: {{ include "jellyfin.fullname" $ }} port: {{ $.Values.service.port }} {{- end }} {{- end }}