Bug 1888036 - Operator details shows old CRD versions
Summary: Operator details shows old CRD versions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.7.0
Assignee: Jon Jackson
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1980182
TreeView+ depends on / blocked
 
Reported: 2020-10-13 20:37 UTC by Jon Jackson
Modified: 2021-07-20 13:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: CSV and PackageManifests listed every provided API version instead of just the latest version. Consequence: CSV and PackageManifest pages could show duplicate provided APIs. Fix: Update the logic for retrieving CSV and PackageManifiest provided APIS so that only the latest API version is used for each. Result: Only the latest version of each provided API is displayed on PackageManifest and CSV pages.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:25:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Mock CSV and CRD (34.51 KB, text/plain)
2020-10-13 20:37 UTC, Jon Jackson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console issues 6602 0 None closed Add ability to hide older apiVersions in a CSV to avoid extra CRD tabs in the OLM UI 2021-02-18 20:11:43 UTC
Github openshift console pull 7305 0 None closed Bug 1888036: Only show latest version for each CSV and PackageManifest provided API. 2021-02-18 20:11:43 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:26:09 UTC

Description Jon Jackson 2020-10-13 20:37:54 UTC
Created attachment 1721309 [details]
Mock CSV and CRD

Created attachment 1721309 [details]
Mock CSV and CRD

Description of problem:

Operator details page shows instance list tab for all API versions of a CRD. We should only show for the latest version.


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

How reproducible:
Always

Steps to Reproduce:
1. Create mock resources from provided yaml attachment
2. In the project where the above yamle was created, visit Installed Operators > Mock Operator.

Actual results:
The horizontal nav tabs will show several repeated instance list pages for each different owned version of the same CRD. 

Expected results:
Only the latest owned CRD version for each CRD kind should be shown


Additional info:

Comment 3 Jon Jackson 2020-10-23 15:12:09 UTC
Next in my queue.

Comment 4 Jon Jackson 2020-11-13 15:53:25 UTC
Fix in progress.

Comment 5 Jon Jackson 2020-12-04 21:20:55 UTC
PR Pending Review

Comment 7 Yanping Zhang 2021-01-08 09:46:47 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.nightly-2021-01-07-181010, create crd from yaml in attachment, then visit Installed Operators > Mock Operator. There is only the latest version crd for a kind crd shown in horizontal nav tabs. 
The bug is fixed.

Comment 10 errata-xmlrpc 2021-02-24 15:25:41 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.7.0 security, bug fix, and enhancement 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-2020:5633


Note You need to log in before you can comment on or make changes to this bug.