fix: misbehaving when editing or deleting an image of the same name
Created by: zhaohuiweixiao
Signed-off-by: zhaohuihui zhaohuihui_yewu@cmss.chinamobile.com
What type of PR is this?
/kind bug /kind feature
What this PR does / why we need it:
- When a container with the same name is edited, the modified container configuration is always updated to the first container with the same name.
- When a container with the same name is deleted, all containers with the same name are deleted
In addition, duplicate container names are not allowed in the kubernetes, So It is necessary to add duplicate name validation to avoid the operation bug of same container name.
Special notes for reviewers:
/assign harrisonliu5
Does this PR introduced a user-facing change?
feat: add duplicate name validation to the container name