Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions self-host/charts/capacitor-next/templates/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{{- if .Values.httpRoute.enabled -}}
apiVersion: {{ .Values.httpRoute.apiVersion | default "gateway.networking.k8s.io/v1" }}
kind: {{ .Values.httpRoute.kind | default "HTTPRoute" }}
metadata:
name: {{ include "capacitor-server.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "capacitor-server.labels" . | nindent 4 }}
{{- with .Values.httpRoute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.httpRoute.parentRefs }}
parentRefs:
{{- toYaml .Values.httpRoute.parentRefs | nindent 4 }}
{{- end }}
{{- if .Values.httpRoute.hostnames }}
hostnames:
{{- range .Values.httpRoute.hostnames }}
- {{ tpl . $ | quote }}
{{- end }}
{{- end }}
rules:
- matches:
{{- if .Values.httpRoute.matches }}
{{- toYaml .Values.httpRoute.matches | nindent 8 }}
{{- else }}
- path:
type: PathPrefix
value: /
{{- end }}
backendRefs:
- name: {{ include "capacitor-server.fullname" . }}
port: {{ .Values.service.port }}
{{- end }}
17 changes: 17 additions & 0 deletions self-host/charts/capacitor-next/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,23 @@ ingress:
# hosts:
# - capacitor.example.com

## HTTPRoute configuration
httpRoute:
# -- Enables Gateway API HTTPRoute resource generation instead of standard Ingress
enabled: false
# -- HTTPRoute apiVersion. Keep this configurable for environments that need a non-default Gateway API version
apiVersion: gateway.networking.k8s.io/v1
# -- HTTPRoute kind
kind: HTTPRoute
# -- Key-value map for controller-specific metadata
annotations: {}
# -- FQDNs for Layer 7 hostname matching. If empty, the route matches all hostnames allowed by the parent Gateway listener
hostnames: []
# -- References to the parent Gateway listeners this route should attach to
parentRefs: []
# -- Match rules applied before the default PathPrefix "/" fallback
matches: []

nodeSelector: {}

tolerations: []
Expand Down