Skip to content

Conversation

frozenprocess
Copy link

@frozenprocess frozenprocess commented Jul 9, 2025

This change adds CRUD support for ANP.

Summary

This PR adds/fixes [feature/bug] by [brief description of what the change does].

frontend: Add support for ANP resources which can be found under the Network section.

Related Issue

Fixes #3575

Changes

  • Added an ANP component to the UI
  • Added a Kube Object to headlamp lib to represent ANP

[ x ] Having a dedicated sub menu link in the Network section for ANPs
[ x ] Create ANPs using the + button in the ANP link
[ x ] ANP List view
[ x ] ANP Detail view

Steps to Test

  1. Navigate to Network section
  2. Click on Admin Network policies (alpha)
    2a. create an ANP
    2b. view your ANP
    2c. delete your ANP
  3. submit a feedback here :)

Screenshots (if applicable)

Notes for the Reviewer

  • [e.g., This touches the i18n layer, so please check language consistency.]

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 9, 2025
@k8s-ci-robot k8s-ci-robot requested review from sniok and vyncent-t July 9, 2025 04:03
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: frozenprocess
Once this PR has been reviewed and has the lgtm label, please assign illume for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

Welcome @frozenprocess!

It looks like this is your first PR to kubernetes-sigs/headlamp 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/headlamp has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 9, 2025
@frozenprocess
Copy link
Author

I could use a bit of help on this. Unlike KNP, ANPs have subject which could be either pods or namespaces. I'm trying to find a good way to represent them

  1. method one: we use icon and labels with a tooltip that explains each icon if you hover over it
image 2. Method two: we use text image Judges? :)

@mazdakn
Copy link

mazdakn commented Jul 18, 2025

@frozenprocess I personally think option 2 is better than 1. But is it possible to use icons before each subject selector for differentiation?

@frozenprocess
Copy link
Author

@frozenprocess I personally think option 2 is better than 1. But is it possible to use icons before each subject selector for differentiation?

Yep, did some testing and it is possible to put an icon before each subject selector.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 5, 2025
ANP - Alpha support
- This change adds CRUD support for ANP.
- Added an ANP component to the UI
- Added a Kube Object to headlamp lib to represent ANP
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 5, 2025
@frozenprocess
Copy link
Author

Admin network policy is going through some changes, and it will be renamed. However, this will not change our effort to have it ready for the Beta release in Headlamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Admin Network Policy resources
3 participants