armada/armada/handlers
Iago Estrela ddbdd7256c Tolerate 404 Response for non existing resource
Armada raises an exception for the 404 response from the Kubernetes
API if the resource was not found. However, some resources, like
jobs, are "volatile" they may disappear after some minutes. The
armada may send a DELETE request to the Kubernetes API after the job
finished its lifecycle. In this situation the job will not be found
in the cluster and the armada will break some application reapply due
to this behavior. Therefore, a possible solution may be check, at
least for the job resource type, whether the response returned from
the Kubernetes API is 404, if it is then just log the API response
error reason and continue trying to delete the remaining jobs in the
list, otherwise we raise the exception.

Partial-Bug: 1948850

Signed-off-by: Iago Estrela <IagoFilipe.EstrelaBarros@windriver.com>
Change-Id: I12ee8cef869e4443920d7f2e1899556e8940a977
2021-10-26 18:04:57 -03:00
..
__init__.py feat(api): policy enforcement and api standard 2017-09-20 21:54:39 +00:00
armada.py Airship 2 support features 2020-03-25 13:56:32 -05:00
chart_delete.py Standardize Armada code with YAPF 2019-07-31 10:16:15 -05:00
chart_deploy.py Improve release upgrade "diff" debug log readability 2021-06-03 11:21:06 -04:00
chart_download.py Airship 2 support features 2020-03-25 13:56:32 -05:00
chartbuilder.py fix: Align template file naming with Helm CLI 2019-10-03 20:32:43 +00:00
document.py Address PEP8 Failures in Armada 2020-05-29 18:02:11 -05:00
k8s.py Armada improved logging, uplift dependency 2021-06-24 10:53:06 -04:00
lock.py Standardize Armada code with YAPF 2019-07-31 10:16:15 -05:00
manifest.py Airship 2 support features 2020-03-25 13:56:32 -05:00
metrics.py Implement Prometheus metric integration 2019-08-15 16:12:17 +00:00
override.py Standardize Armada code with YAPF 2019-07-31 10:16:15 -05:00
release_diff.py fix: Align template file naming with Helm CLI 2019-10-03 20:32:43 +00:00
schema.py Standardize Armada code with YAPF 2019-07-31 10:16:15 -05:00
test.py Standardize Armada code with YAPF 2019-07-31 10:16:15 -05:00
tiller.py Tolerate 404 Response for non existing resource 2021-10-26 18:04:57 -03:00
wait.py Fixing Armada waits for Evicted pods undefinetly 2021-03-22 16:45:08 -03:00