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: "invalid pod status" when running scrips with the kubernetes executor. #1242
Fix: "invalid pod status" when running scrips with the kubernetes executor. #1242
Conversation
…kubernetes api. Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
…hrown. Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
} | ||
// undetermined status -- return an empty response | ||
return Collections.emptyMap() | ||
} | ||
|
||
throw new K8sResponseException("K8s invalid pod status (missing container status)", resp) | ||
throw new K8sResponseException("K8s Can't determine pod state from status returned by K8s API ", resp) | ||
} |
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.
Frankly, I think the previous err message was a bit more informative.
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.
@pditommaso The previous message did not reflect why the Exception was being thrown anymore. The problem is not missing container status, but rather that K8s returned a set of phase and conditions that the code can not determine the pod state (end of function without any resolvement).
I can revert the change to the message, or insert a more informative message of your choice 😄 (I'm really bad at constructing error message btw 🙈)
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.
Fair enough, what about K8s undermined status conditions for pod $podName
?
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.
Fair enough, what about
K8s undermined status conditions for pod $podName
?
Sounds good to me. Will update pull request.
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
Thanks for this contribution. |
Fix for issue: #1223
Signed-off-by: Ólafur Haukur Flygenring olafurh@wuxinextcode.com