-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.17
-
None
-
Moderate
-
None
-
False
-
-
Release Note Not Required
-
In Progress
This is a clone of issue OCPBUGS-37448. The following is the description of the original issue:
—
Description of problem:
when normal user tries to create namespace scoped network policy, selected project in project selection dropdown was not taken
Version-Release number of selected component (if applicable):
4.17.0-0.nightly-2024-07-17-183402
How reproducible:
Always
Steps to Reproduce:
1. normal user with a project view networkpolicy page /k8s/ns/yapei1-1/networkpolicies/~new/form 2. Hit on 'affected pods' in Pod selector section OR keep everything with default value and click on 'Create'
Actual results:
2. User will see following error when click on 'affected pods' Can't preview pods r: pods is forbidden: User "yapei1" cannot list resource "pods" in API group "" at the cluster scope User will see following error when click on 'Create' button An error occurrednetworkpolicies.networking.k8s.io is forbidden: User "yapei1" cannot create resource "networkpolicies" in API group "networking.k8s.io" at the cluster scope
Expected results:
2. switching to 'YAML view' we can see that the selected project name was not auto populated in YAML
Additional info:
- clones
-
OCPBUGS-37448 selected project is not automatically persisted when creating namespaced network policy
- Verified
- is blocked by
-
OCPBUGS-37448 selected project is not automatically persisted when creating namespaced network policy
- Verified
- links to