Skip to content
Merged
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
9 changes: 9 additions & 0 deletions components/envoy-configs/templates/httproute.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ spec:
{{- end }}
port: {{ .service.port }}
{{- end }}
{{- if .timeouts }}
timeouts:
{{- if hasKey .timeouts "backendRequest" }}
backendRequest: {{ .timeouts.backendRequest | default "15s"}}
{{- end }}
{{- if hasKey .timeouts "request" }}
request: {{ .timeouts.request | default "15s"}}
{{- end }}
{{- end }}
{{- if eq .service.backendType "tls" }}
---
apiVersion: gateway.envoyproxy.io/v1alpha1
Expand Down
19 changes: 18 additions & 1 deletion components/envoy-configs/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@
"backendType": {
"type": "string",
"description": "Type of traffic that service expects - 'http' or 'tls'",
"enum": ["tls", "http"]
"enum": [
"tls",
"http"
]
}
},
"required": [
Expand Down Expand Up @@ -133,6 +136,20 @@
"filters": {
"type": "object",
"description": "Route filters."
},
"timeouts": {
"type": "object",
"description": "Rule timeouts",
"properties": {
"request": {
"type": "string",
"description": "Request specifies the maximum duration for a gateway to respond to an HTTP request."
},
"backendRequest": {
"type": "string",
"description": "BackendRequest specifies a timeout for an individual request from the gateway to a backend. This covers the time from when the request first starts being sent from the gateway to when the full response has been received from the backend."
}
}
}
},
"required": [
Expand Down
Loading