aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-05-27 21:31:50 +0000
committerGerrit Code Review <gerrit@onap.org>2020-05-27 21:31:50 +0000
commitaf7fd0ed77933189c1f2263e078c38e4c65f4c86 (patch)
tree2cc4900dd13525ed6a4f3d6a53d80e27e2f6c54e /kubernetes
parent08ef91484bfcffe854148a83aa17230da22ce22f (diff)
parentc1e95eec5660abd9540400784e9777257d7abcac (diff)
Merge "Fix readiness-check ready.py script for stateful set"
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/readiness/src/main/scripts/ready.py4
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