Skip to content

policy: Add support for Cluster Network Policy CRD#42338

Merged
tommyp1ckles merged 5 commits intocilium:mainfrom
TheBeeZee:anp-crd
Feb 13, 2026
Merged

policy: Add support for Cluster Network Policy CRD#42338
tommyp1ckles merged 5 commits intocilium:mainfrom
TheBeeZee:anp-crd

Conversation

@TheBeeZee
Copy link
Copy Markdown
Contributor

@TheBeeZee TheBeeZee commented Oct 22, 2025

This PR adds support for the k8s Cluster Network Policy v1alpha2 CRD. It adds a parser, a watcher and the required flags.

This is work in progress, so the CRD is disabled by default. The ENABLE_CLUSTERNETWORKPOLICY environment variable enables it for kind-install-cilium Makefile target..

Support for rule priorities and "pass" rules will be provided in a future PR.

Add support for Kubernetes Cluster Network Policy (KCNP)

@TheBeeZee TheBeeZee requested review from a team as code owners October 22, 2025 18:14
@TheBeeZee TheBeeZee requested a review from marseel October 22, 2025 18:14
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Oct 22, 2025
@github-actions github-actions bot added the sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. label Oct 22, 2025
@TheBeeZee TheBeeZee force-pushed the anp-crd branch 5 times, most recently from 651c0a2 to 4e2c4a3 Compare October 22, 2025 21:02
@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/test

Copy link
Copy Markdown
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Exciting developments! I did an initial review and found some semantic mismatches that I think we need to look into

@TheBeeZee TheBeeZee force-pushed the anp-crd branch 3 times, most recently from 9c6f13a to 3477038 Compare October 23, 2025 20:22
@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/test

@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/test

@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/test

Signed-off-by: Blaz Zupan <blaz@google.com>
Signed-off-by: Blaz Zupan <blaz@google.com>
Disabled by default. A new Makefile target is added that enables it in kind clusters.

Signed-off-by: Blaz Zupan <blaz@google.com>
Signed-off-by: Blaz Zupan <blaz@google.com>
Signed-off-by: Blaz Zupan <blaz@google.com>
@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/test

@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/ci-l3-l4

1 similar comment
@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/ci-l3-l4

@TheBeeZee
Copy link
Copy Markdown
Contributor Author

For some reason the test keep getting cancelled (last iteration was cancalled in the "Workflow Telemetry" step). Retrying one more time.

@TheBeeZee
Copy link
Copy Markdown
Contributor Author

/ci-l3-l4

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 13, 2026
@tommyp1ckles tommyp1ckles added this pull request to the merge queue Feb 13, 2026
Merged via the queue into cilium:main with commit 46ec9bd Feb 13, 2026
76 checks passed
@joestringer
Copy link
Copy Markdown
Member

FYI I updated the release note in the PR description to be more clear to the user. Congrats on landing this 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/major This PR introduces major new functionality to Cilium. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.