Commit Graph

80 Commits

Author SHA1 Message Date
mbohlool
7c1819373f Change IntOrString field types from string to object 2017-10-17 07:52:35 -07:00
mbohlool
6b1a80c67f Updte master to kubernetes 1.8 2017-10-09 17:56:32 -07:00
mbohlool
19359213b5 Update CHANGELOGS and final touch ups 2017-10-09 17:32:19 -07:00
mbohlool
1d27f7e71b Fix end to end tests 2017-10-09 17:15:34 -07:00
mbohlool
789e37464b Fix (hack) rest client for patch 2017-10-09 17:15:34 -07:00
mbohlool
bc2aac4897 Update base to get fixes to utility functions because of using new generated client 2017-10-09 17:15:05 -07:00
mbohlool
4782543825 Remove config, apiClient, and restClient from ignore list of swagger-codegen and regenerate client using HEAD of the generator 2017-10-09 17:15:05 -07:00
mbohlool
63d667a45e Update generated client first 2017-10-09 17:15:04 -07:00
mbohlool
27ba35aa81 Use stream module to call exec/attach calls 2017-09-22 11:42:59 -07:00
mbohlool
55ef46b6cf Update base to latest commit with stream module added 2017-09-22 11:42:59 -07:00
Jochen Breuer
3b66dde057 Changes from update-client.sh 2017-08-16 08:11:47 +02:00
Jochen Breuer
1054f10c6d Introducing __version__ and __project__ variables
Version information comes from scripts/constants.py and is hard-coded to
kubernetes/__init__py by scripts/update-client.sh.

__project__ is just hard-coded.

Fixes #317
2017-08-16 08:11:47 +02:00
mbohlool
b4f852a9d9 update generated client to get https://github.com/kubernetes/kubernetes/pull/49357 2017-08-10 17:33:39 -07:00
Jean Raby
c3d3ea82d2 Support for v4 stream protocol
- Set Sec-WebSocket-Protocol header from cfg param
- Add ERROR and RESIZE websocket channels
  As defined in pkg/kubelet/server/remotecommand/websocket.go
- Adjust tests to show v4 behavior wtr to status message
- Tweak read_all() to return only data from stdout and stderr.
2017-07-26 15:31:25 -04:00
mbohlool
d518be4ad3 Update base submodule 2017-07-25 13:03:18 -07:00
yuvipanda
1d2369e15d Submodule bump for kubernetes-client/python-base#18 2017-07-09 00:31:31 -07:00
Mehdy Bohlool
f6d80b06cf Merge pull request #287 from dims/use-latest-localkube
Test with latest localkube version
2017-07-07 11:35:01 -07:00
Davanum Srinivas
ebb23b7ca1 Test with latest localkube version
Oops! we are using a really old version, let's switch over to v1.7.0
2017-07-07 13:41:12 -04:00
Mehdy Bohlool
917ec63d51 Support both TPR and CRD with custom objects spec (#283)
* Add ability to use local gen repo for testing

* Update generated client
2017-07-07 10:26:25 -07:00
Spyros Trigazis
afe706d63a Remove oauth2client requirement (#286)
In #278 google-auth was added in requirements and in [1]
python-base stopped using it.

Remove oauth2client requirement and update submodule commit.

[1] https://github.com/kubernetes-client/python-base/pull/16

Related-Issue: #275

Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2017-07-07 10:26:06 -07:00
mbohlool
5900a4c8c5 Fix Travis CI failure 2017-06-30 14:15:10 -07:00
mbohlool
ef558a5ce4 Update generated client 2017-06-29 01:34:59 -07:00
Ebbe Elsborg
b0bc0beac4 Generate client with 'name' and 'namespace' swapped for TPRs 2017-06-23 09:17:58 +02:00
Ebbe Elsborg
1849b1fe56 Generate client with 'version' parameter 2017-06-21 13:42:34 +02:00
Ebbe Elsborg
2e67319b97 Run update-client.sh 2017-06-21 13:42:34 +02:00
Sergi Almacellas Abellana
9cd0b3dc9a Use urlparse to generate websocket url
Fixes #246
2017-06-15 09:30:37 +02:00
Sergi Almacellas Abellana
cf2e8408f5 Update submodule to user config fixes
Closes #236
2017-06-09 10:15:29 +02:00
mbohlool
8a3b2bae14 Update generated client for TPR fix 2017-05-21 22:58:45 -07:00
mbohlool
e7a257a9ee Update client (only version changes) 2017-05-21 22:36:27 -07:00
mbohlool
5eee265f25 Update base submodule 2017-05-19 16:52:18 -07:00
mbohlool
23b0f8c008 Update generated client 2017-05-19 15:27:35 -07:00
mbohlool
8980d48039 Add kubernetes-client/python-base as submodule to this repo 2017-05-19 00:24:39 -07:00
mbohlool
dd30fe6a70 Remove base folder to prepare for submodule model 2017-05-19 00:21: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
a0577b03cb Merge branch 'master' into config 2017-04-24 10:35:55 -07:00
mbohlool
318e551e37 BUGFIX: token file should not be decoded 2017-04-24 10:33:50 -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