-
Notifications
You must be signed in to change notification settings - Fork 260
refactor: Move CNI bridge/transparent routes to common #694
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #694 +/- ##
==========================================
- Coverage 39.12% 38.74% -0.39%
==========================================
Files 83 83
Lines 10697 10709 +12
==========================================
- Hits 4185 4149 -36
- Misses 6010 6056 +46
- Partials 502 504 +2 |
network/network_linux.go
Outdated
|
|
||
| return nil | ||
|
|
||
| // old |
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.
remove commented code
c0bba2e to
4931ccc
Compare
iptables/iptables.go
Outdated
| DisableIPTableLock bool | ||
| ) | ||
|
|
||
| type IpTableEntry struct { |
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.
nit: IPTableEntry
cni/network/invoker_cns.go
Outdated
| } | ||
|
|
||
| azureDNSMatch := fmt.Sprintf(" -m addrtype ! --dst-type local -s %s -d %s -p %s --dport %d", ncSubnetPrefix.String(), iptables.AzureDNS, iptables.UDP, iptables.DNSPort) | ||
| snatPrimaryIPJump := fmt.Sprintf("%s --to %s", iptables.Snat, info.podIPAddress) |
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.
info.podIPAddress don't snat with podIPAddress, snat with ncPrimaryIPAddress
4931ccc to
45817d1
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Reason for Change:
Fixed an issue for adding routes to the external interface, in transparent and bridge mode, as well as the snat rules
Issue Fixed:
Requirements:
Notes: