Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-57508

UI for custom CRD incorrectly displays memory and storage fields for startupResources.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.18
    • Management Console
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Important
    • None
    • None
    • None
    • Rejected
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When configuring the startupResources for an IntegrationRuntime custom resource through the UI, the form incorrectly provides input fields for Memory and Storage in addition to CPU.

      Version-Release number of selected component (if applicable):

          

      How reproducible:

      Always    

      Steps to Reproduce:

          1. Navigate to the UI for creating or editing an IntegrationRuntime resource.
          2. Locate the section for configuring "Startup Resources" (spec.template.spec.containers[].startupResources).
          3. Observe that fields for Memory and Storage are present alongside the CPU field.
             

      Actual results:

      Fields for Memory and Storage are present alongside the CPU field.

      Expected results:

      Only CPU field should be presented.   

      Additional info:

      $ oc get crd integrationruntimes.appconnect.ibm.com -o yaml       
      ...
      ...
                  startupResources:
                      description: Startup Resources
                      properties:
                        limits:
                          description: Limit values for the duration of the runtime container
                            startup
                          properties:
                            cpu:
                              anyOf:
                              - type: integer
                              - type: string
                              description: |-
                                CPU Allocation
                                Specify millicores values(e.g. 100m, where 100m is equivalent to .1 core).
                              pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                              x-kubernetes-int-or-string: true
                          type: object
                        requests:
                          description: Requests values for the duration of the runtime container
                            startup
                          properties:
                            cpu:
                              anyOf:
                              - type: integer
                              - type: string
                              description: |-
                                CPU Allocation
                                Specify millicores values(e.g. 100m, where 100m is equivalent to .1 core).
                              pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
                              x-kubernetes-int-or-string: true
                          type: object
                      type: object

       

              rh-ee-jonjacks Jon Jackson
              rhn-support-vdurgam Vedant Durgam
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: