From 8a7ffb10425ffb14161d8fa16a1f7f885bb296ab Mon Sep 17 00:00:00 2001 From: Jordane Fillatre Date: Tue, 29 Dec 2020 16:00:10 +0100 Subject: [PATCH] Add unavailable replicas calculation Signed-off-by: Jordane Fillatre --- chaosk8s/statefulset/probes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaosk8s/statefulset/probes.py b/chaosk8s/statefulset/probes.py index 8e3d772..ac0be04 100644 --- a/chaosk8s/statefulset/probes.py +++ b/chaosk8s/statefulset/probes.py @@ -61,7 +61,7 @@ def _statefulset_readiness_has_state(name: str, ready: bool, p=statefulset.metadata.name, t=event["type"], r=status.ready_replicas, a=spec.replicas, - u=status.unavailable_replicas)) + u=spec.replicas - status.ready_replicas)) readiness = status.ready_replicas == spec.replicas if ready == readiness: