-
Notifications
You must be signed in to change notification settings - Fork 115
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
Don't consider pod preempting a failure #317
Conversation
@@ -170,6 +170,21 @@ def test_deploy_failed_is_false_for_evicted | |||
assert_nil pod.failure_message | |||
end | |||
|
|||
def test_deploy_failed_is_false_for_preempting | |||
container_state = pod_spec.merge( | |||
"status" => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you confident that this is what the status will look like (or at least the reason). Otherwise this PR wont work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks both!
@@ -170,6 +170,21 @@ def test_deploy_failed_is_false_for_evicted | |||
assert_nil pod.failure_message | |||
end | |||
|
|||
def test_deploy_failed_is_false_for_preempting | |||
container_state = pod_spec.merge( | |||
"status" => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a2e6130
to
ab83055
Compare
When I run into this case it looks like |
I suspect that kubernetes thinks progress is being made, progress to the controller is defined rather broadly, so it never actually hits |
Similar to #293, pod/node preempting is a recoverable state (the desired pod count will reduce once the node has been reaped), so isn't a valid condition for fast failure.