Skip to content

Conversation

@paulyufan2
Copy link
Contributor

@paulyufan2 paulyufan2 commented Jan 28, 2025

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:

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:

This PR is based on npm-lite PR with cns middleware refactoring and linked with this PR:
#3205

Notes:

@paulyufan2 paulyufan2 requested a review from rbtr January 29, 2025 22:01
QxBytes
QxBytes previously approved these changes Jan 29, 2025
@paulyufan2 paulyufan2 changed the title Coderefactorcnsswiftv2 fix: route issues on Swiftv2 Windows Jan 30, 2025
rbtr
rbtr previously approved these changes Jan 30, 2025
Copy link
Collaborator

@rbtr rbtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff against #3286 LGTM, thanks for integrating the OS changes here

@paulyufan2
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@paulyufan2 paulyufan2 requested a review from kmurudi January 30, 2025 20:30
@paulyufan2 paulyufan2 dismissed stale reviews from rbtr and QxBytes via 1de9834 January 31, 2025 02:59
Copy link
Contributor

@kmurudi kmurudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, pending testing/validation on cluster

@paulyufan2
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rbtr rbtr added this pull request to the merge queue Feb 4, 2025
Merged via the queue into master with commit 962b7f3 Feb 4, 2025
14 checks passed
@rbtr rbtr deleted the coderefactorcnsswiftv2 branch February 4, 2025 23:38
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* updated CNS for adding default deny acl's

* added infra nic change

* added unit tests

* resolved pr comments

* updating to fix github checks

* added logging lines

* removing unnecessary logging lines

* removed cni circular dependency

* switch from having consts to making them inline

* cns changes based on update to network container contrac

* fixed spelling

* updated unit test

* updated test

* reverted a comment

* updated name of function

* changed policy type

* added a new line

* resolving pr comments

* resolving pr comments

* re-added back

* updated creating acl code to make it more modularized

* fixed golint errors

* fixed golint

* added tests

* fixed spelling

* moved an assertion line

* reformated creating acl's

* refactored code per pr comments

* fixed lint

* moved GetEndpointPolicy so that it is only run on init

* updated code

* updated error message

* updated getEndpointPolicy placement

* updated comment

* fixed golint issues

* refactored

* fixed comments

* updated return inline

* updated unit test returns

* corrected the go lint of file

* fix swiftv2 route issues

* ut fix

* fix linter issue

* fix comments

* fix comments

* fix comments

* enhance comment

* rename func names

---------

Signed-off-by: Paul Yu <[email protected]>
Co-authored-by: rejain456 <[email protected]>
Co-authored-by: rejain456 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cns Related to CNS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants