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
4 changes: 4 additions & 0 deletions helm/templates/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
- backendRefs:
- name: {{ $serviceName }}
port: {{ $servicePort }}
{{- with $route.timeouts }}
timeouts:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $route.filters }}
filters:
{{- toYaml . | nindent 8 }}
Expand Down
7 changes: 7 additions & 0 deletions helm/tests/route_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ tests:
parentRefs:
- name: gateway
namespace: default
timeouts:
requests: 300s
asserts:
- hasDocuments:
count: 2
Expand Down Expand Up @@ -183,3 +185,8 @@ tests:
- path:
type: PathPrefix
value: /
- documentIndex: 1
equal:
path: spec.rules[0].timeouts
value:
requests: 300s
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ routerSpec:
# - name: X-Custom-Header
# value: custom-value

# -- Timeouts applied to the route rule (https://gateway-api.sigs.k8s.io/api-types/httproute/#timeouts-optional)
timeouts: {}

# -- Additional custom rules that can be added to the route
additionalRules: []

Expand Down