aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorAkansha Dua <akansha.dua@amdocs.com>2019-10-03 17:15:21 +0530
committerAkansha Dua <akansha.dua@amdocs.com>2019-10-03 17:22:18 +0530
commitb77da7a27ad6aa97bc4352246242ba04d86dbad3 (patch)
treeb87e77c12760467454765ef293b305f02ac092b1 /kubernetes
parente2e79d111bf61f22e284c97bb139b9e73e715b29 (diff)
Make readiness-check work when updatedReplicas is None
Issue-ID: OOM-2057 Signed-off-by: Akansha Dua <akansha.dua@amdocs.com> Change-Id: I8deb64ee5c5e9667f63a61a7204a83b095a2fc34
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/readiness/docker/init/ready.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kubernetes/readiness/docker/init/ready.py b/kubernetes/readiness/docker/init/ready.py
index db7105a18d..3f76d10395 100644
--- a/kubernetes/readiness/docker/init/ready.py
+++ b/kubernetes/readiness/docker/init/ready.py
@@ -79,7 +79,7 @@ def wait_for_deployment_complete(deployment_name):
response = api.read_namespaced_deployment(deployment_name, namespace)
s = response.status
if (s.unavailable_replicas is None and
- s.updated_replicas == response.spec.replicas and
+ ( s.updated_replicas is None or s.updated_replicas == response.spec.replicas ) and
s.replicas == response.spec.replicas and
s.ready_replicas == response.spec.replicas and
s.observed_generation == response.metadata.generation):