Skip to content

Commit

Permalink
Add unavailable replicas calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Jordane Fillatre <[email protected]>
  • Loading branch information
jordanefillatre committed Dec 29, 2020
1 parent 6339eec commit 8a7ffb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaosk8s/statefulset/probes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8a7ffb1

Please sign in to comment.