Commit Graph

28 Commits

Author SHA1 Message Date
mbohlool
23b0f8c008 Update generated client 2017-05-19 15:27:35 -07:00
mbohlool
1ebceb6460 Move manual code to a base folder to prepare for repo splitting. 2017-05-09 16:26:27 -07:00
mbohlool
c1ad663ca0 Update generated client 2017-05-04 10:56:04 -07:00
Benjamin Sherman
eaf781c787 fix for #187 failure when using RFC 6902 json-patch operation 2017-05-03 17:08:24 -07:00
mbohlool
f5ec773830 Update generated client 2017-04-25 14:11:04 -07:00
Mehdy Bohlool
c8374eb409 Merge branch 'master' into inline 2017-04-18 11:15:00 -07:00
mbohlool
cbc4a6d467 Fix datatime parsing bug in api_client 2017-04-18 10:58:59 -07:00
Miguel Angel Rasero
5a590f8b55 add support for attach api call using websockets. 2017-04-18 19:08:05 +02:00
mbohlool
cfc0ff1a0d Update client 2017-04-17 16:37:09 -07:00
mbohlool
35ca453a47 Update client code 2017-04-05 15:24:07 -07:00
mbohlool
94861c777e Add close method to websocket client 2017-02-27 12:34:53 -08:00
mbohlool
fc8a31b2d1 Remove channel id from exec response in blocking mode 2017-02-24 14:11:29 -08:00
mbohlool
4e593a7530 Improvements on ws_client. Now the client can returns an object to interact with websocket server and reach each channel separately 2017-02-21 12:55:37 -08:00
Davanum Srinivas
353e8ccdc8 Switch to minikube/localkube
* Drop the old Kubernetes on docker containers method as it
  did not have a SSL enabled port
* Use localkube component from minikube instead. This enables
  us to drop the hitch TLS proxy as well.
* E2E tests should be easy to run locally and pick up configuration
  from ~/.kube/config
* Consolidate the urls in one spot (base.py), also consolidate the
  SkipTest in one spot.
* For local testing, just run minikube and run the py27 or py34 tox
  target, that should run all the tests including the e2e tests.
* Fix the connect_post_namespaced_pod_exec and add a e2e test for it

Fixes #122
2017-02-09 15:49:04 -05:00
Davanum Srinivas
066bba1802 Implementation for /exec using websocket
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
2017-02-07 16:48:26 -05:00
Davanum Srinivas
96cfceb2f0 Run e2e tests against against https url
Use hitch tls proxy to listen on 8443 port and forward the
traffic to 8080. Add a configuration option to ignore any
issues with host names as we don't generate the cert on the
fly.
2017-02-03 12:16:58 -05:00
Davanum Srinivas
1e48433b15 Fix ValueError in list_namespaced_config_map
Make sure we set an empty dict/list if we don't get
any data from the server

Fixes #104
2017-01-23 11:41:48 -05:00
Davanum Srinivas
9c6c96564b Fix for patch_* to work
Hack/workaround to get patch_namespaced_config_map and patch_namespaced_service
etc to work by essentially switching over the content-type from:
application/json-patch+json
to:
application/strategic-merge-patch+json

Fixes #93
2017-01-20 21:41:59 -05:00
mbohlool
c05b50c4ff Bugfix: kubernetes/client/__init__.py was not updated resulting in not exported models 2017-01-19 13:58:20 -08:00
mbohlool
98dc69105f Update client with no change. Mostly formatting update in generator code 2017-01-19 13:36:07 -08:00
mbohlool
b971b6b5d1 Update generated client after bugfix kubernetes/kubernetes#39465 2017-01-10 13:20:19 -08:00
mbohlool
8c26b4b75b Support connecting to multiple clusters 2016-12-16 01:50:07 -08:00
mbohlool
69d0d5c5bb Update generated client 2016-12-12 23:37:17 -08:00
mbohlool
41490c80cb Update client 2016-12-08 13:21:07 -08:00
mbohlool
000c873f75 Update version to alpha.2 as alpha.1 is used for a failed release 2016-11-23 14:07:43 -08:00
mbohlool
bc301e25cf Set package version in generated code 2016-11-23 13:59:44 -08:00
mbohlool
d42d43d539 Update generated client with changed spec version 2016-11-23 12:18:53 -08:00
mbohlool
c120630aa3 Update/move generated client 2016-11-22 17:23:41 -08:00