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
choir: normalize error handling in kube_proxy_replacement.go #16811
Conversation
will be more of these per our discussion on normalizing the error handling for depedencies in NewDaemon. |
a1d4d7b
to
2f12813
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.
Couple of super minor nits, otherwise LGTM.
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. One note in addition to Joe's comments
2f12813
to
c86c3f3
Compare
@christarazi @joestringer |
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.
Looks like we have some legit failures in the go linting checkers in addition to the below:
c86c3f3
to
6ff6618
Compare
@christarazi @joestringer sorry about that bit of confusion, that nodediscovery.go file was not supposed to be in this PR at all. Removed it from the edited set and force pushed. |
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 only one nit that doesn't require my 2nd review
@@ -41,12 +41,12 @@ import ( | |||
"golang.org/x/sys/unix" | |||
) | |||
|
|||
func initKubeProxyReplacementOptions() (strict bool) { | |||
func initKubeProxyReplacementOptions() (bool, error) { |
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.
hint to leave a comment about the returned values since now we don't know what is bool
used for.
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.
@aanm I updated this function with a comment describing its usage, can you please read this comment and ensure I have its usage summarized correctly.
this commit normalizes the error handling in kube_proxy_replacement.go by bubbling errors up to the caller of the initialization method. Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
6ff6618
to
16c502a
Compare
this commit normalizes the error handling in kube_proxy_replacement.go
by bubbling errors up to the caller of the initialization method.
Signed-off-by: Louis DeLosSantos louis.delos@isovalent.com