Skip to content
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

[NPM Lite] Support Network Policies Through CNS #3287

Merged
merged 21 commits into from
Feb 4, 2025

Conversation

rejain456
Copy link
Contributor

Reason for Change:

As part of adding default deny so pods can't communicate with one another when network policies are not present, this pr is part 3 which updates the cni code, retrieving the default deny acl from cns and creating HNS endpoints of the ACL's for the pods

Issue Fixed:

Requirements:

Notes:

@rejain456 rejain456 requested review from a team as code owners December 20, 2024 23:58
@rejain456 rejain456 requested a review from a team as a code owner December 24, 2024 02:23
@rejain456 rejain456 changed the title [NPM Lite] Default Deny CNI Changes [NPM Lite] Support Default Deny Network Policies Through CNS Jan 10, 2025
@tamilmani1989 tamilmani1989 changed the title [NPM Lite] Support Default Deny Network Policies Through CNS [NPM Lite] Support Network Policies Through CNS Jan 10, 2025
@paulyufan2
Copy link
Contributor

can we add comment to the description that this change is only applied on windows

tamilmani1989
tamilmani1989 previously approved these changes Jan 10, 2025
@paulyufan2 paulyufan2 added the cni Related to CNI. label Jan 10, 2025
paulyufan2
paulyufan2 previously approved these changes Jan 10, 2025
@paulyufan2
Copy link
Contributor

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@QxBytes QxBytes left a comment

Choose a reason for hiding this comment

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

Could you also add a test in cni/network/network_windows_test.go > TestPluginWindowsAdd (modify either test) such that the returned cns response includes a different endpoint policy to be returned for each response and then confirm that it propagates to the network and endpoint policies fields in the respective wanted EndpointInfo structs properly?

@rejain456 rejain456 force-pushed the jainriya/npmliteCNIchange branch from b799db1 to 19c40d7 Compare January 15, 2025 22:03
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

tamilmani1989
tamilmani1989 previously approved these changes Jan 17, 2025
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

QxBytes
QxBytes previously approved these changes Jan 17, 2025
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

Confirmed with @chandanAggarwal, to merge this pr in

@thatmattlong thatmattlong added this pull request to the merge queue Feb 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 1, 2025
@thatmattlong thatmattlong added this pull request to the merge queue Feb 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2025
@thatmattlong thatmattlong added this pull request to the merge queue Feb 3, 2025
Merged via the queue into master with commit a8f22ee Feb 4, 2025
34 checks passed
@thatmattlong thatmattlong deleted the jainriya/npmliteCNIchange branch February 4, 2025 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cni Related to CNI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants