Skip to content

Commit 8a7ffb1

Browse files
Add unavailable replicas calculation
Signed-off-by: Jordane Fillatre <jordane.fillatre@actility.com>
1 parent 6339eec commit 8a7ffb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chaosk8s/statefulset/probes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _statefulset_readiness_has_state(name: str, ready: bool,
6161
p=statefulset.metadata.name, t=event["type"],
6262
r=status.ready_replicas,
6363
a=spec.replicas,
64-
u=status.unavailable_replicas))
64+
u=spec.replicas - status.ready_replicas))
6565

6666
readiness = status.ready_replicas == spec.replicas
6767
if ready == readiness:

0 commit comments

Comments
 (0)