-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
tools/istio-iptables: make the validator more robust with platform-specific builds #29239
Conversation
Hi @panjf2000. Thanks for your PR. I'm waiting for a istio 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 |
/retest |
Any comments? |
03111c6
to
6ac01c0
Compare
6ac01c0
to
b7c06f9
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.
The move to golang.org/x/sys
looks good to me.
Remove the special build for Windows.
Thanks!
/test integ-pilot-multicluster-tests_istio |
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.
the sys
change LGTM, not sure why we want to be able to build on unsupported platforms though?
/test integ-telemetry-k8s-tests_istio |
PTAL @howardjohn @rlenglet |
Any new comments on this PR?@howardjohn @rlenglet |
Why hasn't there been any new activities since the last review? @howardjohn @rlenglet |
Now your turn.@howardjohn |
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.
Sorry, it was a US holiday so many were off the last 2 weeks
The original code is not platform-specific (naming the file
linux.go
won't work, the compiler only recognize the file suffixes like_$GOOS.go
) and thereuseAddr()
function assigns the user-defined values (2, 15) of SO_REUSEADDR and SO_REUSEPORT (missing from thesyscall
package) tosetsocketopt()
system call directly, which is not a canonical way to do that.Besides, the
syscall
package is now deprecated and code-frozen (see https://golang.org/pkg/syscall/):Go team urged developers to replace
syscall
withgolang.org/x/sys
which is already in theistio
.[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[x] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[x] Does not have any changes that may affect Istio users.