Bug 1993886

Summary: operand creation form doesn't render correct format
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs, jokerman, spadgett, yapei
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:46:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
4.8-Operand-Creation-Form
none
4.9-Operand-Creation-Form none

Description Yadan Pei 2021-08-16 10:48:03 UTC
Created attachment 1814397 [details]
4.8-Operand-Creation-Form

Description of problem:
from OCP 4.9, CRD apiVersion has been updated to apiextensions.k8s.io/v1 and schema has changed, 

Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-14-065522

How reproducible:
Always

Steps to Reproduce:
1. Create mock operator CRD(new apiVersion) and CSV
$ oc project default
$ oc create -f https://gist.githubusercontent.com/TheRealJon/3680c8a573bde88a974588e269230562/raw/7d86f6691e9e2863ba5955e7bdb0aad3ff3791af/crd.yaml
$ oc create -f https://gist.githubusercontent.com/TheRealJon/3680c8a573bde88a974588e269230562/raw/7d86f6691e9e2863ba5955e7bdb0aad3ff3791af/csv.yaml
2. Create 'Mock Resource' operand using form view


Actual results:
2. some fields are not rendered with correct format, for example following fields with different x-descriptors are not rendered correctly(see screenshot) 

          - path: select
            description: select - Eu nisi fugiat occaecat laborum.
            displayName: "Select"
            x-descriptors:
              - "urn:alm:descriptor:com.tectonic.ui:select:DEBUG"
              - "urn:alm:descriptor:com.tectonic.ui:select:INFO"
              - "urn:alm:descriptor:com.tectonic.ui:select:WARN"
              - "urn:alm:descriptor:com.tectonic.ui:select:ERROR"
              - "urn:alm:descriptor:com.tectonic.ui:select:FATAL"
          - path: k8sResourcePrefix
            description: "k8sResourcePrefix - Amet magna ea exercitation sint et dolor deserunt quis."
            displayName: "K8s Resource Prefix"
            x-descriptors:
              - "urn:alm:descriptor:io.kubernetes:Project"
          - path: podCount
            description: "podCount - Quis laboris ea Lorem deserunt mollit commodo."
            displayName: "Pod Count"
            x-descriptors:
              - "urn:alm:descriptor:com.tectonic.ui:podCount"
          - path: password
            description: "password - Et culpa officia eiusmod labore eiusmod occaecat."
            displayName: "Password"
            x-descriptors:
              - "urn:alm:descriptor:com.tectonic.ui:password"

Expected results:
compared with OCP 4.8, these fields should be rendered with correct format, see screenshot


Additional info:
For comparison, in OCP 4.8, create mock operator CRD and CSV
$ oc apply -f https://raw.githubusercontent.com/openshift/cucushift/master/testdata/customresource/mock-operator-csv-and-crd.yaml?token=ADA2XHKSWRQNME2D3A7QPHLBENDU2

then create 'Mock Resource' operand using form view

Comment 1 Yadan Pei 2021-08-16 10:48:33 UTC
Created attachment 1814398 [details]
4.9-Operand-Creation-Form

Comment 4 Yadan Pei 2021-08-31 07:28:36 UTC
Create CRD and CSV as described in https://bugzilla.redhat.com/show_bug.cgi?id=1993886#c0, now all fields are rendering with correct format, verified on 4.9.0-0.nightly-2021-08-30-192239

Comment 7 errata-xmlrpc 2021-10-18 17:46:20 UTC
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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759