Description of problem:
Unit drop-down choices are ignored in the web page to edit resource limits
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create DC
$ oc new-app openshift/hello-openshift
2. On DC page, click Actions --> Edit Resources Limits
3. Check unit choices
CPU: Choose Request unit "cores" from drop-down list, set value 1; set Limit value 512 milicores
Memory: Choose Request unit "GiB", set value 1; set Limit value 256 MiB
Then click Save
3. "Save" is not disabled.
After save, check the actual resources limits:
CPU: Request is set 1 milicores, i.e. "cores" is ignored!
Memory: Request is set 1 MiB. In fact, except MiB, the remaining units MB/GB/GiB are ignored
3. "Save" is disabled
In page, CPU and Memory should both prompt error message "Limit can't be less than request ..." as before
Commit pushed to master at https://github.com/openshift/origin-web-console
Bug 1413842 - Use dot in ng-model path for compute resource units
This has been merged into ocp and is in OCP v18.104.22.168 or newer.
Verified in OCP v22.214.171.124. Steps in comment 0 now can get the written expected result. And it can save correct values into DC YAML when page saves CPU/Memory with various units. Thanks!