-
Notifications
You must be signed in to change notification settings - Fork 669
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
Add Additional Details To Pod Eviction Log Messages #279
Add Additional Details To Pod Eviction Log Messages #279
Conversation
seanmalloy
commented
May 12, 2020
- 3a204de - all strategies log error from EvictPod method
- 55de441 - add pod namespace to pod eviction log messages
Looks like the Travis CI tests did not get triggered :-( |
Close and re-open to try and make Travis CI work. |
In multi-tenant environments it is useful to know which namespace a pod was evicted from. Therefore log the namespace when evicting pods. Also, do not log a nil error when successfully evicting pods.
End users should be able to see the detailed error from the EvictPod method when it fails. Updates all strategies to log the error. The PodLifeTime strategy already logs this error.
The EvictPod function previously returned a bool and an error. The function now only returns an error. Callers can check for failure by testing if the returned error is not nil. This aligns the EvictPod function with idiomatic Go best practices. Also, the function name has been changed from EvictPod to evictPod because it is not used outside the evictions package.
@damemi and @ingvagabund PTAL when you have some time. I believe I addressed all of your feedback. |
@seanmalloy thanks for addressing all the comments |
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.
/approve
thanks @seanmalloy
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damemi, seanmalloy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…logs Add Additional Details To Pod Eviction Log Messages