k8s-reboot-coordinator/tests
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
..
integration drain: Retry failed evictions 2025-09-25 12:26:00 -05:00