Skip to content

Commit

Permalink
Merge pull request #181 from gthao313/drain-eviction-fix
Browse files Browse the repository at this point in the history
fix agent stuck on drain bug
  • Loading branch information
gthao313 authored Apr 6, 2022
2 parents 327c868 + fbcea3d commit 4022737
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions models/src/node/drain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ async fn wait_for_deletion(k8s_client: &kube::Client, pod: &Pod) -> Result<(), e
event!(Level::INFO, "Pod {} deleted.", pod.name(),);
break;
}

Ok(p) if p.uid() != pod.uid() => {
event!(Level::INFO, "Pod {} deleted.", p.name(),);
break;
}

Ok(_) => {
event!(
Level::DEBUG,
Expand Down

0 comments on commit 4022737

Please sign in to comment.