Browser type & version: 116.0.5845.111 (Official Build) (64-bit) (Windows 11)
Describe the bug
removing Security Context "Runas User ID" causes error in UI
To Reproduce
open cluster
select workloads
Select Create
choose Deployment
on container-0 provide image (e.g nginx:latest)
select Security Context
Enter 33 in "Run as User ID"
Save
Edit Config for workload just created
Under Security Context remove 33 from "Run as User ID"
Try to save
Result
Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal string into Go struct field SecurityContext.spec.template.spec.containers.securityContext.runAsUser of type int64
Expected Result
Config change should be saved
Note:
When removing the number single quotes are left behind causing the failure.
If I edit yaml and remove ID then it saves correctly
Setup
Describe the bug removing Security Context "Runas User ID" causes error in UI
To Reproduce
Result
Expected Result Config change should be saved
Note: When removing the number single quotes are left behind causing the failure. If I edit yaml and remove ID then it saves correctly
Tested on 2.7.5 and 2.7.7-rc4 - both have issue