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(k8s): handle status of deleted Pod correctly #1084

Merged
merged 1 commit into from
May 6, 2022

Commits on May 6, 2022

  1. fix(k8s): handle status of deleted Pod correctly

    Whilst deleting a kernel namespace returns a v1.Status, deleting a Pod
    will return a v1.Pod and its status field is a v1.PodStatus, not a
    string.
    
    The existing code currently raises an exception as it attempts to do an
    'in' check against the V1PodStatus type rather than a string as it
    expected. This is logged as:
    > Error occurred deleting pod: argument of type 'V1PodStatus' is not iterable
    dnwe committed May 6, 2022
    Configuration menu
    Copy the full SHA
    936a44d View commit details
    Browse the repository at this point in the history