Commit Graph

47 Commits

Author SHA1 Message Date
mbohlool
6c640c69de Release 2.0.0 constants 2017-05-03 11:38:37 -07:00
Benjamin Sherman
f8f0d89aab fix for #187 failure when using RFC 6902 json-patch operation 2017-04-27 21:08:50 -05:00
mbohlool
f4d943b435 Update versions for 2.0.0b1 release 2017-04-26 15:39:11 -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
Davanum Srinivas
38aaec0f47 Refactor tests
* separate batch, extensions and the regular apis into separate
* added delete for some tests
* drop '_' for is_k8s_running
* remove comments that do not add value
2017-01-26 09:11:07 -05:00
Davanum Srinivas
03731f1003 Add e2e for deployment and daemonsets 2017-01-25 17:00:05 -05:00
Davanum Srinivas
cf5d796cf4 Ability to run e2e tests multiple times 2017-01-25 16:02:06 -05:00
mbohlool
8fc978e49f Support insecure-skip-tls-verify config flag 2017-01-24 14:47:20 -08: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
Davanum Srinivas
28181d7ee9 cleanup: rename k8sclient->client 2017-01-16 14:45:02 -05:00
Davanum Srinivas
5c82309840 tox target to enforce pep8 2017-01-12 16:47:45 -05:00
Davanum Srinivas
010af62b76 Add functional test
Port a bunch of tests from python-k8sclient repository. There
is a script that starts a real instance of kubernetes and
the tests are executed against it.

Note, if you just have k8s accessible in your localhost:8080, the
tests still run. so you don't really need to run "py27-functional"
which runs the kube-init.sh

Also, 2 API calls fail currently, i've added a TODO so we can
dig into them and fix them
2017-01-12 06:26:16 -05:00
mbohlool
b971b6b5d1 Update generated client after bugfix kubernetes/kubernetes#39465 2017-01-10 13:20:19 -08:00
mbohlool
aac5d71b39 Bugfix: Bearer token should have 'bearer ' prefix 2016-12-27 16:48:52 -08:00
mbohlool
8c26b4b75b Support connecting to multiple clusters 2016-12-16 01:50:07 -08:00
mbohlool
4d14edb757 Add default kube config location 2016-12-15 14:47:24 -08:00
mbohlool
a429afe91d Resolving cert files relative path using kube-config file path. 2016-12-15 14:20:48 -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
b888000b4a - Add context switch to kube config loader
- Refactor kube config loader to be able to test it
- Add test for kube config loader
2016-12-01 16:08:14 -08:00
mbohlool
acc07d720b incluster_config loader should fail on empty host/port or cert/token file 2016-12-01 16:08:13 -08:00
mbohlool
66e4f5ff70 Move ConfigException out of incluster_config and in it's own file 2016-12-01 16:07:14 -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
b2f2f5ad23 Update formatting with scripts/update-pep8.sh 2016-11-23 13:35:35 -08:00
mbohlool
d42d43d539 Update generated client with changed spec version 2016-11-23 12:18:53 -08:00
mbohlool
ba3e22a7ac Add incluster config support 2016-11-23 10:31:22 -08:00
mbohlool
26ac2c4a12 Separate package util into config and watch package 2016-11-22 17:52:46 -08:00
mbohlool
b715e998b0 Export util and client modules in top level kubernetes module 2016-11-22 17:23:41 -08:00
mbohlool
47340d13d0 Move k8sutil to kubernetes/util and update imports 2016-11-22 17:23:41 -08:00
mbohlool
c120630aa3 Update/move generated client 2016-11-22 17:23:41 -08:00