This removes the __del__ function from the generated Python client,
and replaces it with a cleanup function. When a ThreadPool is created,
the cleanup function is registered with the atexit module.
This PR also allows the client to be used as a context manager, which
will automatically clean up after itself rather than having to wait til
process exit.
This fixes issue #1037, where the API client could hang indefinitely at
garbage collection.
* 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
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