diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-05-27 21:31:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-27 21:31:50 +0000 |
commit | af7fd0ed77933189c1f2263e078c38e4c65f4c86 (patch) | |
tree | 2cc4900dd13525ed6a4f3d6a53d80e27e2f6c54e /kubernetes/readiness/src/main/scripts/ready.py | |
parent | 08ef91484bfcffe854148a83aa17230da22ce22f (diff) | |
parent | c1e95eec5660abd9540400784e9777257d7abcac (diff) |
Merge "Fix readiness-check ready.py script for stateful set"
Diffstat (limited to 'kubernetes/readiness/src/main/scripts/ready.py')
-rw-r--r-- | kubernetes/readiness/src/main/scripts/ready.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kubernetes/readiness/src/main/scripts/ready.py b/kubernetes/readiness/src/main/scripts/ready.py index 93932073cd..b932b04284 100644 --- a/kubernetes/readiness/src/main/scripts/ready.py +++ b/kubernetes/readiness/src/main/scripts/ready.py @@ -60,10 +60,8 @@ def wait_for_statefulset_complete(statefulset_name): try: response = api.read_namespaced_stateful_set(statefulset_name, namespace) s = response.status - if (s.updated_replicas == response.spec.replicas and - s.replicas == response.spec.replicas and + if (s.replicas == response.spec.replicas and s.ready_replicas == response.spec.replicas and - s.current_replicas == response.spec.replicas and s.observed_generation == response.metadata.generation): log.info("Statefulset " + statefulset_name + " is ready") return True |