Commit Graph

22 Commits

Author SHA1 Message Date
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