-
Notifications
You must be signed in to change notification settings - Fork 240
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
fix: route issues on Swiftv2 Windows #3205
base: master
Are you sure you want to change the base?
Conversation
6683000
to
ec4f810
Compare
cd29e26
to
8077cd5
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
This pull request is stale because it has been open for 2 weeks with no activity. Remove stale label or comment or this will be closed in 7 days |
Pull request closed due to inactivity. |
6b3eefc
to
0213526
Compare
1249211
to
272f829
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
e9442c3
to
4f8ef4f
Compare
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
for i := range podIPInfo { | ||
assert.DeepEqual(t, podIPInfo[i].Routes, desiredPodIPInfo[i].Routes) | ||
reflect.DeepEqual(podIPInfo[i].Routes, desiredPodIPInfo[i].Routes) |
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.
Preference towards github.com/google/go-cmp/cmp.Equal
over reflect.DeepEqual
(it's a drop-in replacement)
v4IPs = []string{} | ||
v6IPs = []string{} |
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.
Don't use named returns please, they have surprising semantics. For example, these two lines are unnecessary since they are auto-initialized.
Reason for Change:
This is the long term solution to fix Swiftv2 Windows Routes issues to make sure windows cns gets all required cidrs from AKS.
Fixes include:
1.Windows CNS gets infravnet/pod/node cidrs from configs
2.Add these routes and send them to the CNI
Issue Fixed:
Background of the issue:
In Linux Swiftv2, CNS fetches infravnet/pod/node cidrs from the node's envs set by AKS; we should do same thing for Windows;
Requirements:
Require to validate this PR after AKS-RP PR to be merged
Notes: