Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8ce91c8
feat: add StreamTimeout field for gRPC streaming calls
shiavm006 Jul 11, 2025
9fc18ff
chore: update generated files for StreamTimeout field
shiavm006 Jul 11, 2025
d7d4d55
added a test example
shiavm006 Jul 25, 2025
04dcfb2
Add StreamTimeout field for gRPC streaming calls
jukie Oct 11, 2025
72c2780
tests, release notes, cleanup
jukie Oct 11, 2025
297892f
lint and tests
jukie Oct 11, 2025
8415366
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 11, 2025
366b1e8
golint
jukie Oct 11, 2025
6efa438
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 11, 2025
506b768
Remove grpc-timeout-header-max
jukie Oct 15, 2025
f53ff8d
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 15, 2025
e5f6910
release note
jukie Oct 15, 2025
e0b6da8
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 18, 2025
d47d02a
feedback
jukie Oct 24, 2025
b920b25
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 24, 2025
e0fd8fa
remove extra file
jukie Oct 24, 2025
1d5b598
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 24, 2025
c08d326
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 24, 2025
98031b6
update testdata
jukie Oct 24, 2025
31097da
remove unnecessary tests
jukie Oct 24, 2025
232bdc1
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 27, 2025
2ef7ed8
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 27, 2025
a55a10f
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 28, 2025
35e8284
Merge branch 'main' into grpc-streaming-timeout
jukie Oct 29, 2025
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
8 changes: 8 additions & 0 deletions api/v1alpha1/timeout_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ type HTTPTimeout struct {
//
// +optional
RequestTimeout *gwapiv1.Duration `json:"requestTimeout,omitempty" yaml:"requestTimeout,omitempty"`

// MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
// from when the request is sent until the response stream is fully consumed and does not apply to
// non-streaming requests.
// When set to "0s", no max duration is applied and streams can run indefinitely.
//
// +optional
MaxStreamDuration *gwapiv1.Duration `json:"maxStreamDuration,omitempty"`
}

type ClientTimeout struct {
Expand Down
5 changes: 5 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until which entire
response is received from the upstream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until which
entire response is received from the upstream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12072,6 +12072,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is
the time until which entire
Expand Down Expand Up @@ -13271,6 +13279,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is
the time until which entire
Expand Down Expand Up @@ -14551,6 +14567,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time
until which entire response is received
Expand Down Expand Up @@ -15744,6 +15768,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until
which entire response is received from the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until
which entire response is received from the upstream.
Expand Down Expand Up @@ -2687,6 +2695,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until
which entire response is received from the upstream.
Expand Down Expand Up @@ -3992,6 +4008,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time
until which entire response is received
Expand Down Expand Up @@ -5345,6 +5369,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until
which entire response is received from the upstream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2250,6 +2250,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until which entire
response is received from the upstream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until which
entire response is received from the upstream.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12071,6 +12071,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is
the time until which entire
Expand Down Expand Up @@ -13270,6 +13278,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is
the time until which entire
Expand Down Expand Up @@ -14550,6 +14566,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time
until which entire response is received
Expand Down Expand Up @@ -15743,6 +15767,14 @@ spec:
Default: unlimited.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
maxStreamDuration:
description: |-
MaxStreamDuration is the maximum duration for a stream to complete. This timeout measures the time
from when the request is sent until the response stream is fully consumed and does not apply to
non-streaming requests.
When set to "0s", no max duration is applied and streams can run indefinitely.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
type: string
requestTimeout:
description: RequestTimeout is the time until
which entire response is received from the
Expand Down
Loading
Loading