Repository navigation
feat: add UDP client idle timeout to ClientTrafficPolicy - #10111
Open
zhaohuabing wants to merge 22 commits into
Open
zhaohuabing wants to merge 22 commits into
zhaohuabing wants to merge 22 commits into
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
zhaohuabing
force-pushed
the
udp-idle-timeout
branch
2 times, most recently
from
September 25, 2026 14:27
ed2335e to
cc46215
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10111 +/- ##
==========================================
+ Coverage 82.84% 82.86% +0.02%
==========================================
Files 279 279
Lines 44687 44704 +17
==========================================
+ Hits 37019 37043 +24
+ Misses 7667 7660 -7
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
zhaohuabing
force-pushed
the
udp-idle-timeout
branch
from
October 16, 2026 06:36
ea97501 to
92f375d
Compare
zhaohuabing
marked this pull request as ready for review
October 16, 2026 07:14
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
zhaohuabing
marked this pull request as draft
October 16, 2026 08:14
Member
Author
|
/retest |
zhaohuabing
marked this pull request as ready for review
November 11, 2026 01:51
zhaohuabing
force-pushed
the
udp-idle-timeout
branch
4 times, most recently
from
November 14, 2026 04:53
afca2b1 to
e3befda
Compare
Adds ClientTrafficPolicy.spec.timeout.udp.idleTimeout so operators can tune the idle timeout of UDP sessions on a UDP listener. Envoy Gateway never set idle_timeout on the udp_proxy filter, so UDP sessions always used Envoy's built-in 1 minute default. The new field is plumbed from the API through the UDP listener IR into UdpProxyConfig.idle_timeout. Signed-off-by: Huabing (Robin) Zhao <[email protected]>
An invalid ClientTrafficPolicy no longer drops the UDP route. UDP listeners only use the timeout, so errors in TCP-only fields such as keepalive are reported without cutting off UDP traffic. Also cover a Gateway-wide policy on TCP and UDP listeners and regenerate the CRD helm test output. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
A bad keepalive or connection setting on the same policy used to block the UDP idle timeout too. Now only a bad UDP timeout skips it, and the other errors still show on the policy status. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Only the UDP listener builds the UDP idle timeout now, so a bad UDP value no longer breaks HTTP or TCP listeners, and their IR no longer carries an unused UDP block. The API docs also say the setting doesn't apply to HTTP/3. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
The unit test already covers how invalid UDP timeouts are handled, so the extra golden fixture isn't needed. Signed-off-by: Huabing (Robin) Zhao <[email protected]> Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
zhaohuabing
force-pushed
the
udp-idle-timeout
branch
from
November 16, 2026 04:54
e3befda to
5874bc9
Compare
zirain
approved these changes
Nov 16, 2026
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
zirain
approved these changes
Nov 26, 2026
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
ClientTrafficPolicy.spec.timeout.udp.idleTimeout, which setsidle_timeouton the UDP proxy filter. Envoy Gateway never set it, so every UDP session used Envoy's 60s default.This follows #10110. Once the shutdown manager waits on active UDP sessions, this timeout decides how soon UDP traffic goes quiet during a drain. Lowering
drainTimeoutalso shortens the wait, but it cuts off TCP and HTTP connections too.