-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CheCluster
custom resource completion and docs are not available anymore on OpenShift 4.3 +
#16860
Comments
@davidfestal
|
@tolusha did you really try in OpenShift 4.3 + ? Afaik
That seems like a bug, no ? |
For openshift 4.3, crd with I tested on minikube for openshift 3.11.
yes, I will fix it in the same PR |
@tolusha could you please update the issue with the result of the tests we did again today, and the updated proposed plan ? |
@davidfestal |
Postponed to 7.13.1 release |
It seems this has been fixed only in the
So as a result, it has been integrated in the downstream manifests only in the CRW
What I would suggest is:
|
@tolusha As you mentioned it in a slack comment, I didn't see it was at a distinct place in the newer released versions in upstream Che operator repository. However the problem is that the new nightly bundle doesn't have it: https://github.com/redhat-developer/codeready-workspaces-operator/blob/crw-2.5-rhel-8/manifests/codeready-workspaces.crd.yaml |
A fix has already been proposed by @tolusha in PR eclipse-che/che-operator#509 |
Describe the bug
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 OpenShift 4.3 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
CheCluster
CRD file would be required to enable YAML language services again on theCheCluster
custom resource:type: object
field at the root of the OpenApi schemapreserveUnknownFields
CRD field tofalse
. 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.
This will allow getting back language services (completion / docs) on the
CheCluster
custom resource in the OpenShift Console for OpenShift 4.3 +This bug has already been fixed in the
CheCluster
CRD included in CRW 2.1.1 release by this PR: https://github.com/redhat-developer/codeready-workspaces-operator/pull/19However the upstream Che general use-case is a bit trickier since we have to ensure compatibility of the CRD for OpenShift 3.11 when installing from chectl as well. So CRD generation scripts should take in account the fact that CRD in the raw
deploy
yaml will be slightly different (one compatible with 3.11 up to 4.2 the other one with OS 4.x.Che version
Steps to reproduce
Create a
CheCluster
custom resource in OpenShift 4.3 console after installing The Che operator, and you will miss yaml completion and documentation.Expected behavior
Create a
CheCluster
custom resource in OpenShift 4.3 console after installing The Che operator, and you should get yaml completion and documentation.Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)The text was updated successfully, but these errors were encountered: