Skip to content

Reapply "Implementation for /exec using websocket"#410

Closed
dulek wants to merge 1 commit into
kubernetes-client:masterfrom
dulek:issue-409
Closed

Reapply "Implementation for /exec using websocket"#410
dulek wants to merge 1 commit into
kubernetes-client:masterfrom
dulek:issue-409

Conversation

@dulek

@dulek dulek commented Dec 5, 2017

Copy link
Copy Markdown

This commit reapplies PR #120 that was removed by #353. Below is the
original commit message.

inspired by the POC from @chekolyn

  • Adds a new requirement on websocket-client
  • Add a new class WSClient that uses WebSocketApp from
    the websocket-client.
  • Make sure we pass Authorization header
  • Make sure we honor the SSL settings in configuration
  • Some of the code will get overwritten when we generate
    fresh classes from swagger definition. To remind us
    added a e2e test so we don't lose the changes
  • Added a new configuration option to enable/disable failures
    when hostnames in certificates don't match

Fixes #58
Fixes #409

This commit reapplies PR kubernetes-client#120 that was removed by kubernetes-client#353. Below is the
original commit message.

inspired by the POC from @chekolyn

* Adds a new requirement on websocket-client
* Add a new class WSClient that uses WebSocketApp from
  the websocket-client.
* Make sure we pass Authorization header
* Make sure we honor the SSL settings in configuration
* Some of the code will get overwritten when we generate
  fresh classes from swagger definition. To remind us
  added a e2e test so we don't lose the changes
* Added a new configuration option to enable/disable failures
  when hostnames in certificates don't match

Fixes kubernetes-client#58
Fixes kubernetes-client#409
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 5, 2017
@dims

dims commented Dec 13, 2017

Copy link
Copy Markdown
Collaborator

@dulek the websocket related code is still there ... under https://github.com/kubernetes-client/python-base/blob/master/stream/ws_client.py

@dulek

dulek commented Dec 13, 2017

Copy link
Copy Markdown
Author

@dims: Oh, so I assume only change to api_client.py is needed?

@mbohlool

mbohlool commented Dec 13, 2017

Copy link
Copy Markdown
Contributor

@dulek api_client.py is an auto-generated file and we should not edit it. Please refer to example here for how to do exec calls in the new python client world :)

@mbohlool mbohlool closed this Dec 13, 2017
@dulek

dulek commented Dec 13, 2017

Copy link
Copy Markdown
Author

Oh. Thanks for pointing it out and sorry for all the fuss!

@mbohlool

Copy link
Copy Markdown
Contributor

@dulek You are welcome and no worries. Let me know how your experience went with exec calls. Any improvements to that process would be most welcome.

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

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants