Files
taskchampion-sync-server/helm/taskchampion-sync-server/templates/httproute.yaml
2026-05-11 21:11:11 -04:00

24 lines
660 B
YAML

{{- if .Values.httpRoute.enabled }}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ include "taskchampion-sync-server.fullname" . }}
labels:
{{- include "taskchampion-sync-server.labels" . | nindent 4 }}
spec:
parentRefs:
- name: {{ .Values.httpRoute.gateway }}
{{- if .Values.httpRoute.host }}
hostnames:
- {{ .Values.httpRoute.host }}
{{- end }}
rules:
- matches:
- path:
type: PathPrefix
value: {{ .Values.httpRoute.path }}
backendRefs:
- name: {{ include "taskchampion-sync-server.fullname" . }}
port: {{ .Values.httpRoute.port }}
{{- end }}