这是indexloc提供的服务,不要输入任何密码
Skip to content

add 'GET' method to pod exec handler, so it can support websocket #818

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

Merged
merged 1 commit into from
Mar 9, 2020

Conversation

guoliangshuai
Copy link
Contributor

I found a BUG in virtual-kubelet:
users trying to do pod exec with WebSocket will end with 405, while pod exec with SPDY will be ok.
The reason is:

WebSocket usually starts handshake with a http request of 'GET'
pod exec handler in virtual-kubelet only register 'POST' method
PS:code of pod exec handler in virtual-kubelet actually suport both WebSocket and SPDY

@guoliangshuai
Copy link
Contributor Author

I signed it

Copy link
Contributor

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

@cpuguy83 cpuguy83 merged commit 230ebe1 into virtual-kubelet:master Mar 9, 2020
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