46b26199b0e9fc251da5ecf4efb79f1977010eef
All checks were successful
dustin/k8s-reboot-coordinator/pipeline/head This commit looks good
Using a channel to transfer the list of pods from the task that is evicting the pods to the task that is waiting for them to be deleted creates a race condition. It is possible for the watch event stream to handle the pod delete event _before_ the channel delivers the pod identifier, so the pod gets added to the wait list _after_ it's already been deleted. This results in the `wait_drained` task waiting forever for the pod to be deleted, even though it is already gone. To address this, we need to construct the wait list in the `drain_node` task, as we are evicting pods. This way, we can be sure that every pod that was evicted is in the wait list immediately.
Description
No description provided
Languages
Rust
97%
Shell
2%
Dockerfile
1%