Prevent pods from failing if the reason is because of a resource quota

Signed-off-by: Shane McDonald <me@shanemcd.com>
This commit is contained in:
Shane McDonald
2019-10-05 14:07:33 -04:00
committed by Ryan Petrello
parent 08df2cad68
commit b93164e1ed
3 changed files with 57 additions and 14 deletions

View File

@@ -26,9 +26,6 @@ class PodManager(object):
namespace=self.namespace,
_request_timeout=settings.AWX_CONTAINER_GROUP_DEFAULT_LAUNCH_TIMEOUT)
# We don't do any fancy timeout logic here because it is handled
# at a higher level in the job spawning process. See
# settings.AWX_ISOLATED_LAUNCH_TIMEOUT and settings.AWX_ISOLATED_CONNECTION_TIMEOUT
while True:
pod = self.kube_api.read_namespaced_pod(name=self.pod_name,
namespace=self.namespace,