-
Notifications
You must be signed in to change notification settings - Fork 248
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
Feature Request: Add edit and detail UI for NetworkPolicies #4729
Comments
Hey @richard-cox - could you do me a favor and maybe provide some clarification on what QA would be checking here since this would be a brand new page? Is there a specific happy-path that they would want to follow to ensure proper coverage? |
@Jono-SUSE-Rancher There's some more detail in the PRs description (including screenshots). Otherwise @bashofmann Would be able to provide some better info. |
You should be able to create and edit network policies as a form which results in valid manifests (https://kubernetes.io/docs/concepts/services-networking/network-policies/). If you need inspiration for some valid NetworkPolicies that should be also create-able through the UI form, this repo has some examples: https://github.com/ahmetb/kubernetes-network-policy-recipes. Not sure if you want to also then test the underlying NetworkPolicy functionality of Kubernetes. |
Validating 3b2677f: 🔴 Issues found:
The CIDR is not invalid, and there's no explanation given for the error. It goes away once you enter the exception: 🟡 Minor issues with selectors (probably not a blocker):
🟢 Looks good:
@bashofmann can you check at least the first issue (the error banner)? |
Confirmed with @catherineluse and @gaktive to add |
@richard-cox the error is still happening but with a different message now: This is on 417d4a4 |
@cmurphy The error message is correct, there's an invalid Exception |
@richard-cox the message appears as soon as "Add exception" is clicked, before the user has even had a chance to enter anything in the Exceptions field and before the save button is clicked. It also still appears above the CIDR field instead of above the Exceptions field. |
I've created #5446 to cover the position of the validation message (and fix another bug). However the visibility of the initial state (where the error is shown when the user hasn't entered anything) is out of scope for this issue. It involves either tracking touched state in the ArrayList or applying per ArrayList item validation, both should be tackle as part of the wider Form validation changes brought in by @Sean-McQ |
Detailed Description
Add a UI to edit and viel NetworkPolicies.
Context
NetworkPolicies are one of the more complex Kubernetes resources. But they are also frequently used in enterprise contexts to restrict incoming and outgoing traffic of pods. A UI would make this much more accessible, especially for Kubernetes beginners.
The text was updated successfully, but these errors were encountered: