From 960cab94d6be5fa2e165bba1aabb9b973fa3e5b3 Mon Sep 17 00:00:00 2001 From: othman touijer Date: Thu, 2 Dec 2021 18:17:45 +0100 Subject: [READINESS] Update readiness script Fix condition to restrain to running pods Issue-ID: OOM-2878 Signed-off-by: othman touijer Change-Id: Ib10697793a72206cde9040661cf34030833f0a67 --- ready.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ready.py b/ready.py index 4eb73ab..681f3fd 100755 --- a/ready.py +++ b/ready.py @@ -224,7 +224,7 @@ def service_mesh_job_check(container_name): if item.status.container_statuses is None: continue for container in item.status.container_statuses: - if container.name == container_name: + if container.name == container_name and item.status.phase == "Running": name = read_name(item) log.info("Container Details %s ", container) log.info("Container Status %s ", container.state.terminated) -- cgit 1.2.3-korg