Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix agent stuck on drain bug #181

Merged
merged 1 commit into from
Apr 6, 2022

Commits on Apr 5, 2022

  1. fix agent stuck on drain bug

    Some customers are using StatefulSet which makes pod's name unchangeable,
    and we use the name of the evicted pod and query the k8s API on wait_for_deletion
    fucntion, waiting for it to 404 before declaring a pod deleted.
    Therefore, current logic can't handle this sepcial case. We add a new if
    statement condition to compare two pods by uid to make sure if they are the
    same pod. If they are same pod, brupop should wait until it be deleted,
    otherwise we should recognize the old pod has already been deleted and
    re-lives on other node.
    gthao313 committed Apr 5, 2022
    Configuration menu
    Copy the full SHA
    fbcea3d View commit details
    Browse the repository at this point in the history