Go to file
Dustin d937bd6fb2 drain: Retry failed evictions
If evicting a pod fails with an HTTP 239 Too Many Requests error, it
means there is a PodDisruptionBudget that prevents the pod from being
deleted.  This can happen, for example, when draining a node that has
Longhorn volumes attached, as Longhorn creates a PDB for its instance
manager pods on such nodes.  Longhorn will automatically remove the PDB
once there are no workloads on that node that use its Volumes, so we
must continue to evict other pods and try evicting the failed pods again
later.  This behavior mostly mimics what `kubectl drain` does to handle
this same condition.
2025-09-25 12:26:00 -05:00
scripts Initial commit 2025-09-24 08:17:03 -05:00
src drain: Retry failed evictions 2025-09-25 12:26:00 -05:00
tests/integration drain: Retry failed evictions 2025-09-25 12:26:00 -05:00
.editorconfig Initial commit 2025-09-24 08:17:03 -05:00
.gitignore Initial commit 2025-09-24 08:17:03 -05:00
Cargo.lock Begin lock/unlock implementation 2025-09-24 08:25:32 -05:00
Cargo.toml Begin lock/unlock implementation 2025-09-24 08:25:32 -05:00
rustfmt.toml Initial commit 2025-09-24 08:17:03 -05:00