Skip to content

feat(tcp): add active draining support to the tcp proxy - #10133

Open
wbpcode wants to merge 3 commits into
envoyproxy:mainfrom
wbpcode:dev-add-draining-support
Open

wbpcode wants to merge 3 commits into
envoyproxy:mainfrom
wbpcode:dev-add-draining-support

Conversation

@wbpcode

@wbpcode wbpcode commented Sep 28, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:

To address the #10108

Which issue(s) this PR fixes:

Fixes #

To address the #10108


PR Checklist

  • Authorship & ownership: Coding agents / AI assistants are welcome, but I have reviewed every change, understand how and why it works, can explain and maintain it, and take full responsibility for this PR. I have not submitted generated output I do not understand.
  • DCO: All commits are signed off (git commit -s). See DCO: Sign your work.
  • API agreed first: If this PR contains API changes (changes under /api), the API was discussed and agreed before the implementation. The API change can be in a separate PR, or in the same PR, but the API must be agreed before implementation. N/A if this PR does not contain API changes.
  • Required checks pass: make generate gen-check, make lint, and the unit-test/coverage build pass. (Flaky e2e failures are not considered breakages, but gen-check, lint, and coverage MUST pass.)
  • Tests added/updated: New/changed code is covered by appropriate tests. N/A if this PR does not contain code changes.
  • Docs: User-facing changes update the docs, either in this PR or a follow-up PR. N/A if this PR does not contain user-facing changes.
  • Release notes: For any non-trivial change, added a release-note fragment under release-notes/current/<section>/<pr-number>-<slug>.md (see release-notes/current/README.md for sections and naming). N/A if this PR does not contain non-trivial changes.
  • Generated files committed: Ran make gen-check and committed the result if API/helm charts/modules changed.
  • Scope & compatibility: The PR is reasonably scoped (no unrelated changes) and preserves backward compatibility, or any breaking change is called out above and documented in release-notes/current/breaking_changes/.
  • Codex review: Requested a Codex review and addressed all of its comments.
  • Copilot review: Requested a Copilot review and addressed all of its comments.

Signed-off-by: wbpcode <wbphub@gmail.com>
@wbpcode
wbpcode requested a review from a team as a code owner September 28, 2026 08:50
@netlify

netlify Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit ba934a2
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6abb0d527b086a0008aa48f7
😎 Deploy Preview https://deploy-preview-10133--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: wbpcode <wbphub@gmail.com>
@codecov

codecov Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.46%. Comparing base (f1f4888) to head (ba934a2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10133      +/-   ##
==========================================
+ Coverage   81.41%   81.46%   +0.04%     
==========================================
  Files         266      266              
  Lines       41300    41308       +8     
==========================================
+ Hits        33626    33651      +25     
+ Misses       7673     7656      -17     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

// Default: false.
//
// +optional
EnableActiveDrain *bool `json:"enableActiveDrain,omitempty"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be opt-in or opt-out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think it should be opt-in. The TcpProxy is there for 10 years, I guess the active drain is not always necessary for most users.
So, I inclined to keep the previous default behavior for that.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants