Fix network policies update to support name updation
What does this MR do and why?
Addresses #339793 (closed)
Fixes a bug when the name of a container network policy is updated.
Screenshots or screen recordings
How to set up and validate locally
- Follow the Protect Onboarding task to be able to create network policies in kubernetes/cilium
- Navigate to
Security & Compliance
=>Policies
- Create a new container (network) policy
- Select the policy and click
Edit policy
in the sidebar - Modify the name and click
Save policy
- View the policy in the policies list
Example Project: https://staging.gitlab.com/defend-team-test/cnp-alert-demo/-/security/policies
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sashi Kumar Kumaresan