-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
pkg/proxy/userspace/roundrobin: Make lb.services
nil check standardized
#108257
Comments
/sig network |
state
nil check standardizedlb.services
nil check standardized
There have been discussions of deprecating the user-space proxier. Maybe transfer it to kpng. A question is if anybody still uses it. Seems like you do, so if possible please explain if you have a use-case where the user-space proxier is wanted/needed. |
Hey @uablrek. Actually, I was casually reading the source code and I saw a |
Quick question though: I saw in the kpng news that the user-space proxy porting was near completion, maybe it's worth talking to them in order to check upon the status. |
I don't object to making it clearer or more consistent, if you want to spend time on it, but it's not a high priority. That said, I think a nil value in that map would be really bad (and should be impossible) and I don't know how we would raise a signal about it. |
let us know if you want to try to fix it, otherwise we can just close this. |
PR submitted, so let's review and discuss further there. |
As suggested in here, some portions of the code contains the map checking for nil values in
lb.services
map, and others don't have. Even though we're never assigning nil values to this map, we should standardize the portions that does not have this check inroundrobin
module.Example:
Should be like this:
I can take care of this issue.
The text was updated successfully, but these errors were encountered: