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 some error paths in the controller #197
Conversation
Hi @gkurz. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
9b8f341
to
397f249
Compare
Errors from Client.Get() other than IsNotFound are silently ignored instead of being propagated to the caller. Reorganize the code a bit and add the missing error path. Fixes: d8620dc ("Create SCC on KataConfig creation") Signed-off-by: Greg Kurz <groug@kaod.org>
Errors from Client.Get() other than IsNotFound are silently ignored instead of being propagated to the caller. Reorganize the code a bit and add the missing error path. Signed-off-by: Greg Kurz <groug@kaod.org>
397f249
to
9e34372
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.
Thanks @gkurz !
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.
/lgtm
Thanks @gkurz
@gkurz: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The recently introduced
createScc()
is missing an error path. Same issue exists increateRuntimeClass()
. Fix both.Signed-off-by: Greg Kurz groug@kaod.org