From b77da7a27ad6aa97bc4352246242ba04d86dbad3 Mon Sep 17 00:00:00 2001 From: Akansha Dua Date: Thu, 3 Oct 2019 17:15:21 +0530 Subject: Make readiness-check work when updatedReplicas is None Issue-ID: OOM-2057 Signed-off-by: Akansha Dua Change-Id: I8deb64ee5c5e9667f63a61a7204a83b095a2fc34 --- kubernetes/readiness/docker/init/ready.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kubernetes/readiness') 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): -- cgit 1.2.3-korg