-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Labels
QA/dev-automationIssues that engineers have written automation around so QA doesn't have look at thisIssues that engineers have written automation around so QA doesn't have look at thisarea/server-side-paginationkind/bug
Milestone
Description
Setup
- Rancher version: v2.12
Describe the bug
- We show applicable pods for ingress/egress rule pod selectors
- When Namespace/Pod Label Selector is used we don't search for namespaces in a performant way
- When NOTIN is selected we find all ns not matching results and then search pods for ones with them in
- When vai is enabled we should just use the ns matchExpression in conjunction with the pod matchExpression
- Troublesome line - https://github.com/rancher/dashboard/blob/master/shell/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue#L216
To Reproduce
- cluster -->
Policy-->Network Policies--> Create --> Ingress Rules --> Configure --> + Add allowed traffic target --> Rule type --> Namespace/Pod Label Selector - enter a key for namespace, change namespace operator to not in list
Result
- see the resulting large http request
Expected Result
- the ns should e filtered on metdata.name notint (user string)
Additional context
Metadata
Metadata
Assignees
Labels
QA/dev-automationIssues that engineers have written automation around so QA doesn't have look at thisIssues that engineers have written automation around so QA doesn't have look at thisarea/server-side-paginationkind/bug