summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorothman touijer <othman.touijer@soprasteria.com>2021-12-02 18:17:45 +0100
committerothman touijer <othman.touijer@soprasteria.com>2021-12-02 18:17:45 +0100
commit960cab94d6be5fa2e165bba1aabb9b973fa3e5b3 (patch)
tree29d40d670f55fb773842362ebb9b6610f2f3a7bf
parentaabacc1226e357a2a6cc35faa6d9f6eca412472b (diff)
[READINESS] Update readiness script4.1.0
Fix condition to restrain to running pods Issue-ID: OOM-2878 Signed-off-by: othman touijer <othman.touijer@soprasteria.com> Change-Id: Ib10697793a72206cde9040661cf34030833f0a67
-rwxr-xr-xready.py2
1 files changed, 1 insertions, 1 deletions
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)