-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose websocket header to support base64.channel.k8s.io or v4.base64.channel.k8s.io channel protocol #2098
Expose websocket header to support base64.channel.k8s.io or v4.base64.channel.k8s.io channel protocol #2098
Conversation
/release-not-none |
E2E test failed, let me check. |
@@ -200,7 +206,9 @@ def update(self, timeout=0): | |||
if six.PY3: | |||
data = data.decode("utf-8", "replace") | |||
if len(data) > 1: | |||
channel = ord(data[0]) | |||
channel = data[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2c57d67
to
9eceb3a
Compare
/assign @yliaog |
9271921
to
0035259
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: DrAuYueng The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…hannel.k8s.io Signed-off-by: DrAuYueng <[email protected]>
0035259
to
7a85540
Compare
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
The channel protocols supported by k8s include:
Currently, it is not possible to pass the websocket request header sec-websocket-protocol to wsclient because it cannot be changed in the generated code, and only v4.channel.k8s.io can be used by default in ws_client.py.
The sec-websocket-protocol header needs to be exposed to support base64-encoded messages.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
Signed-off-by: DrAuYueng [email protected]