armada/armada
Sean Eagan c31a961bf1 Automate deletion of test pods
When running helm tests for a chart release multiple times in a site,
if the previous test pod is not deleted, then the test pod creation
can fail due to a name conflict. Armada/helm support immediate test pod
cleanup, but using this means that upon test failure, the test pod logs will
not be available for debugging purposes. Due to this, the recommended approach
for deleting test pods in Armada has been using `upgrade.pre.delete` actions.
So chart authors can accomplish test pod deletion using this
feature, however, it often takes awhile, usually not until they test upgrading
the chart for chart authors to realize that this is necessary and to get it
implemented.

This patchset automates deletion of test pods directly before running tests by
using the `wait.labels` field in the chart doc when they exist to find all pods
in the release and then using their annotations to determine if they are test
pods and deleting them if so.

A later patchset is planned to implement defaulting of the wait labels when
they are not defined.

Change-Id: I2092f448acb88b5ade3b31b397f9c874c0061668
2019-01-28 13:19:09 -06:00
..
api Automate deletion of test pods 2019-01-28 13:19:09 -06:00
cli Automate deletion of test pods 2019-01-28 13:19:09 -06:00
common Fix Flake8 3.6.0 errors 2018-10-26 09:23:42 -04:00
conf Parallelize unsequenced chart group deployments 2018-10-03 10:27:49 -05:00
exceptions Remediate releases stuck in non-DEPLOYED statuses 2019-01-18 23:06:01 +00:00
handlers Automate deletion of test pods 2019-01-28 13:19:09 -06:00
schemas Add warnings for post upgrade actions 2018-11-12 21:19:16 +00:00
tests Automate deletion of test pods 2019-01-28 13:19:09 -06:00
utils Automate deletion of test pods 2019-01-28 13:19:09 -06:00
__init__.py fix(init): remove duplicated version code 2018-05-28 05:52:58 -05:00
const.py Automate deletion of test pods 2019-01-28 13:19:09 -06:00
shell.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00
version.py Fix(linting): Make Armada pep8 compliant 2017-09-29 11:46:58 -04:00