Skip to content

Muxed pod exec websocket protocol - #1966

Merged
kubernetes-prow[bot] merged 2 commits into
kubernetes-client:masterfrom
brendandburns:muxed-pod-exec-websocket-protocol
Oct 19, 2026
Merged

kubernetes-prow[bot] merged 2 commits into
kubernetes-client:masterfrom
brendandburns:muxed-pod-exec-websocket-protocol

Conversation

@brendandburns

@brendandburns brendandburns commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

fixes #1946

Co-authored-by: brendandburns <5751682+brendandburns@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 21:29
@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 16, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from tg123 October 16, 2026 21:29
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused fix includes regression coverage, and static review identified no blocking issues; tests were not executed.

No open issues 🎉

What changed in this PR

Fixes #1946 by honoring pod exec WebSocket options and enabling close support when V5 is negotiated.

Changes:

  • Forwards stream flags, protocol, and custom headers.
  • Sets demuxer close support from the negotiated protocol.
  • Adds regression tests for option forwarding, protocol fallback, and V4 defaults.
File Description
tests/​KubernetesClient.Tests/​KubernetesExecTests.cs Tests forwarded options and protocol-dependent close support.
src/​KubernetesClient/​Kubernetes.WebSocket.cs Forwards exec options and enables close support for V5.

Review effort: Balanced

@tg123 tg123 left a comment

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.

/LTGM

@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, tg123

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [brendandburns,tg123]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@brendandburns brendandburns added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 19, 2026
@brendandburns

Copy link
Copy Markdown
Contributor Author

Adding lgtm label based on typo above :)

@kubernetes-prow
kubernetes-prow Bot merged commit 6b8d575 into kubernetes-client:master Oct 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MuxedStreamNamespacedPodExecAsync doesn't open a V5 WebSocket

3 participants