Add support for Kubernetes Gateway API HTTPRoute resource as a modern alternative to Ingress. The implementation follows the same pattern as the existing Ingress template. Changes: - Add HTTPRoute template with configurable parentRefs, hostnames, and rules - Add httpRoute section to values.yaml with generic examples - Update Chart version from 2.5.0 to 2.6.0 - Add Artifact Hub changelog annotation - Add HTTPRoute documentation to README Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
34 lines
863 B
YAML
34 lines
863 B
YAML
{{- 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 }}
|