Description of problem: The "resourceRequirements" specDescriptor fields- cpu or memory is injected with empty value into YAML when user enters either one or the other. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Installed "Couchbase Operator" from 'OperatorHub' view 2. Go to 'Installed Operators' view and find "Couchbase Operator" 3. Click "Create instance" link for "Couchbase Cluster" 4. Click "Edit form" link 5. Find "Resource Requirements" widget 6. Enter value for CPU only and submit form 7. Open YAML editor Actual results: Memory field is injected with empty value to YAML Expected results: Memory field shouldn't be injected with empty value to YAML Additional info:
Created attachment 1657422 [details] Yaml editor
Created attachment 1657641 [details] Details view
create cr resource such as etcdcluster via form, enter value for CPU only and submit form. Then got the yaml as bellow: spec: pod: resources: limits: cpu: 500m memory: 50mi requests: cpu: 500m memory: 50mi Verified this bug. 4.4.0-0.nightly-2020-02-16-205302
This bug PR depends on PR- https://github.com/openshift/console/pull/4191 to work as expected. The PR https://github.com/openshift/console/pull/4191 would be merge soon.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581