Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-823

`CheCluster` custom resource completion and docs are not available anymore on OpenShift 4.3 +

XMLWordPrintable

      In OpenShift 4.3 and later, the completion and documentation services provided in the console on custom resource YAML is broken for the `CheCluster` custom resource.

      This is quite impacting since those services are very valuable for customers to have a quick and immediate knowledge of the various available Che installation options, as shown in the following screenshot:

      Without the services, the user has no idea of the available options, apart from diving deep into the documentation.

      This is broken because from this OpenShift version and later, the OpenApi schema of Custom Resource Definitions is expected to be valid according to constraints that are now stricter than in previous OpenShift versions.

      Following changes to the latest CRW 2.1.0 CRD file would be required to enable YAML language services again on the CRW custom resource:

      • Add the `type: object` field at the root of the OpenApi schema
      • Set the `preserveUnknownFields` CRD field to `false`. This should not hurt since we don't use fields that are not specified in the schema, and keep backward compatibility of existing fields when updating the CRD.

      The above screenshot show the restored services on a OS 4.3 cluster as soon as these 2 changes are applied to the CRD.

        1. image-2020-04-17-15-40-42-760.png
          178 kB
          David Festal
        2. image-2020-04-17-15-41-54-264.png
          178 kB
          David Festal
        3. Screenshot from 2020-04-20 20-54-30.png
          244 kB
          Dmytro Nochevnov

              nickboldt Nick Boldt
              dfestal David Festal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: