Skip to content

Commit

Permalink
don't leave before visiting all nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <[email protected]>
  • Loading branch information
Lawouach committed Nov 13, 2023
1 parent baef432 commit 35d2c39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

## [Unreleased][]

[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.0...HEAD
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.1...HEAD

## [0.34.1][] - 2023-11-13

[0.34.1]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.0...0.34.1

### Fixed

* Don't escape node draining too soon

## [0.34.0][] - 2023-11-13

Expand Down
4 changes: 2 additions & 2 deletions chaosk8s/node/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ def drain_nodes(
)

if not eviction_candidates:
logger.debug("No pods to evict. Let's return.")
return True
logger.debug("No pods to evict. Let's move on to the next node.")
continue

logger.debug(f"Found {len(eviction_candidates)} pods to evict")
for pod in eviction_candidates:
Expand Down

0 comments on commit 35d2c39

Please sign in to comment.