armada/armada
Sean Eagan 2310ddbc2c Remediate releases stuck in non-DEPLOYED statuses
Armada remediates releases stuck in FAILED status, if not protected,
by purging and re-installing them. This implements the same for other
non-DEPLOYED statuses. For these statuses it guards this with a best
effort determination of whether a previous deployment of the release,
either through armada or the helm CLI, is likely still pending based
on whether it was last deployed within the chart's wait timeout. If
it is deemed likely pending an error is raised, however this
condition will eventually expire on future runs allowing for
eventual remediation.

Reasons why a release may get stuck in statuses other than DEPLOYED
or FAILED include:

1. tiller crashed mid-deployment
2. tiller could not reach kubernetes to update the release state
3. running `helm delete <rel>` (without --purge) (DELETED status)

Change-Id: Ia89cd59f056103dde47980a149c07a2984c4bbb4
2019-01-18 23:06:01 +00:00
..
api test: Refactor test handler 2018-11-29 17:30:57 +00:00
cli test: Refactor test handler 2018-11-29 17:30:57 +00: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 Remediate releases stuck in non-DEPLOYED statuses 2019-01-18 23:06:01 +00:00
schemas Add warnings for post upgrade actions 2018-11-12 21:19:16 +00:00
tests bugfix: Looking in wrong place for upgrade options 2019-01-18 15:57:52 -06:00
utils Remediate releases stuck in non-DEPLOYED statuses 2019-01-18 23:06:01 +00:00
__init__.py fix(init): remove duplicated version code 2018-05-28 05:52:58 -05:00
const.py wait: Remove test pods from wait 2018-11-06 21:58:54 +00: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