Skip to content

Commit 35d2c39

Browse files
committed
don't leave before visiting all nodes
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent baef432 commit 35d2c39

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
## [Unreleased][]
44

5-
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.0...HEAD
5+
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.1...HEAD
6+
7+
## [0.34.1][] - 2023-11-13
8+
9+
[0.34.1]: https://github.com/chaostoolkit/chaostoolkit-kubernetes/compare/0.34.0...0.34.1
10+
11+
### Fixed
12+
13+
* Don't escape node draining too soon
614

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

chaosk8s/node/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def drain_nodes(
348348
)
349349

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

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

0 commit comments

Comments
 (0)