openshift / origin-web-console

Web Console for the OpenShift Application Platform
https://www.openshift.org/
Apache License 2.0
123 stars 230 forks source link

Browse Other Resources errors when CRD plural is complicated #3168

Closed afcollins closed 3 years ago

afcollins commented 4 years ago

Description: A CustomResourceDefinition defines a "broken plural", i.e. that is more than adding an 's' to the singular name. Example: singular='index', plural='indexes'

Browse > Other Resources page is unable to fetch these objects, and throws errors. Also, Add to Project > Import YAML is unable to import valid resources of the CRD Kind (that can indeed be created via CLI).

Version: enterprise 3.11.146

Actual behavior: 1) An error is thrown claiming 'Unknown resource: indexs/group.company.com/v1' 1) valid resources of the CRDs of that Kind are not shown. 2) valid resource manifests of the CRD cannot be imported as YAML through the UI.

Expected Behavior: 1) Web Console uses the configured spec.names.plural from the CRD, when available, in both Add to Project > Import YAML and Browse > Other Resources.

BrianBreniser commented 4 years ago

Reproducible in the openshift playground

openshift_plural_bug.gz

Example files that can reproduce the bug on https://learn.openshift.com/playgrounds/openshift311/

Notice how the badcustomobject.yaml can be created with oc create -f badcustomobject.yaml but cannot be created by the "Import YAML / JSON" dropdown of the web console.

spadgett commented 4 years ago

This was fixed as part of https://bugzilla.redhat.com/show_bug.cgi?id=1753601. Please update to 3.11.161 or newer. If you still see the problem, feel free to reopen the issue. Thanks!

openshift-bot commented 3 years ago

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

spadgett commented 3 years ago

Closing as this is fixed in the latest 3.11.

/remove-lifecycle stale /close

openshift-ci-robot commented 3 years ago

@spadgett: Closing this issue.

In response to [this](https://github.com/openshift/origin-web-console/issues/3168#issuecomment-704995539): >Closing as this is fixed in the latest 3.11. > >/remove-lifecycle stale >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.