Created attachment 1655146 [details] resourceRequirement widget screenshot Description of problem: Currently, the "resourceRequirements" specDescriptor only supports specifying 'Limits/Requests' fields for "CPU" and "Memory" resources. https://github.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/descriptors/reference/reference.md#resourcerequirements Need to support specifying 'Limits/Requests' fields for "Storage" resource too. e.g. 1. Couchbase Operator - CRD: CouchbaseCluster 2. StorageOS Operator - CRD: NFSServer Version-Release number of selected component (if applicable): OCP Console 4.2 and up How reproducible: Always 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 Actual results: Exposes "CPU CORES", "MEMORY" fields Expected results: Exposes "CPU CORES", "MEMORY", "STORAGE" fields Additional info:
Ported from JIRA bug: https://issues.redhat.com/browse/CONSOLE-1922
Per k8s doc, these "storage" related fields for node allocation are `limits.ephemeral-storage` and `requests.ephemeral-storage`. See below links for reference: 1. https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#requests-and-limits-setting-for-local-ephemeral-storage 2. https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#example-scenario 3. https://github.com/operator-framework/community-operators/blob/master/community-operators/kogito-operator/0.7.0/app.kiegroup.org_kogitojobsservices_crd.yaml#L94-L98 Here are a couple Operators that supports specifying a resource of the container: 1. Couchbase Operator - CRD: CouchbaseCluster 2. Kogito Operator - CRD: KogitoJobsService 3. Appsody Operator - CRD: Appsody Application
See additional info (e.g. proposed mockups in JIRA from the previous comment).
See also https://github.com/openshift/console/issues/4139
PR merged: https://github.com/openshift/console/pull/4191 But this bug did not update.
Checked on OCP 4.5 cluster with payload: 4.5.0-0.nightly-2020-03-06-190457 1. Install Kogito Operator in project. 2. Click "Create instance" link for "KogitoJobsService". 3. Click "Edit form" link 4. Find "Resource Requirements" widget, there is "CPU CORES", "MEMORY", "STORAGE" fields, set values for them, click "Create". 5. Check on the kogito job service instance detail page, there is resource part containing cpu, memory, storage values. The bug is fixed, so move it to Verified.
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:2409