-
Notifications
You must be signed in to change notification settings - Fork 2.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
datapath/iptables: de-duplicate program argument construction #14007
Conversation
test-me-please |
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.
Nice!
Can't we factorise the "!", "-d", datapath.RemoteSNATDstAddrExclusionCIDR().String(),
as well? It looks identical in both cases. Unless it has to be after the -o
, but I don't think this is the case?
Good point. I naïvely assumed that the order of the arguments is important. But it seems for these it's not, so we can factor it out. |
Merge common code for constructing iptables arguments. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
3ae2253
to
d5b20d9
Compare
test-me-please previous failure due to dockerhub rate limiting |
retest-gke |
retest-4.9 |
retest-4.19 |
retest-net-next |
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 🎉
Merge common code for constructing iptables arguments.