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
Display Custom Error Message for the APB via termination-log #837
Conversation
|
Could you provide an APB to be used to see this in action? |
|
@djzager https://github.com/johnkim76/lastop-cem-demo-apb |
511d4f2
to
4b46d6e
Compare
4b46d6e
to
a9b690e
Compare
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.
except for a comment NIT LGTM
pkg/apb/watch_pod.go
Outdated
| @@ -36,6 +36,22 @@ var ( | |||
|
|
|||
| type updateDescriptionFn func(string) | |||
|
|
|||
| // ErrorCustomMsg - custom termination msg from pod's 'terminationMessagePath' | |||
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.
custom termination msg from pod's 'terminationMessagePath'
I think that this is generic enough that it could be used for any type of custom error message. What do you think of changing this to just say An error to propagate the custom error message to the callers
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.
I will update
Describe what this PR does and why we need it:
If the APB provision fails, this PR will check for a non-empty termination message, and will display it in the WebUI, instead of the generic error message.
Which issue this PR fixes (This will close that issue when PR gets merged)
fixes #675