armada/armada/handlers
Sean Eagan 7af22df7dc Implement tiller gRPC channel clean up
We have seen issues with dangling threads in Armada. This is likely due to
a bug [0] in the version of gRPC that we were pinned to.

This patchset:

- moves us to the latest versions of the gRPC python libraries which add
  a new `channel.close()` method to cleanup channels.
- implements the python context manager api in the tiller handler
- uses the context manager api to explicitly scope tiller channel creation
  and cleanup to each Armada API and CLI call.

This also fixes a couples issues with error handling introduced in [1].

[0]: https://github.com/grpc/grpc/issues/14338
[1]: https://review.openstack.org/#/c/610384

Change-Id: I2577a20fc76c397aa33157dc12a0e1d36f49733e
2018-11-12 13:32:52 -06:00
..
__init__.py feat(api): policy enforcement and api standard 2017-09-20 21:54:39 +00:00
armada.py Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06:00
chart_deploy.py Run wait/test even if chart not updated 2018-10-31 09:53:12 -05:00
chartbuilder.py Fix for yapf v0.24.0 2018-09-11 20:39:25 +00:00
document.py Fix noqa 2018-10-28 15:10:48 +01:00
k8s.py Clean up and refactor wait logic 2018-09-25 12:48:25 -05:00
manifest.py Fix for get manifest 2018-09-14 15:27:03 +00:00
override.py Fix to override '=' string 2018-08-21 22:21:41 -07:00
release_diff.py Release diffing: split out, add unit tests, include name 2018-08-22 11:29:03 -05:00
test.py Run wait/test even if chart not updated 2018-10-31 09:53:12 -05:00
tiller.py Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06:00
wait.py Fix Flake8 3.6.0 errors 2018-10-26 09:23:42 -04:00