forked from github-mirrorer/taskchampion-sync-server
Adding Helm chart
This commit is contained in:
committed by
Dustin J. Mitchell
parent
dd1b87dad5
commit
b98c87798c
23
helm/taskchampion-sync-server/templates/httproute.yaml
Normal file
23
helm/taskchampion-sync-server/templates/httproute.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user