forked from github-mirrorer/taskchampion-sync-server
24 lines
660 B
YAML
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 }}
|