Bug 1872919 - Static plugin - doesn't handle Operand (Custom Resource) creation page URL correctly
Summary: Static plugin - doesn't handle Operand (Custom Resource) creation page URL co...
Status: ON_QA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Storage Plugin
Version: 4.6
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.6.0
Assignee: Bipul Adhikari
QA Contact: Oded
Depends On:
TreeView+ depends on / blocked
Reported: 2020-08-26 22:55 UTC by tony.wu
Modified: 2020-09-21 09:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Target Upstream Version:

Attachments (Terms of Use)
1_URL_with__clusterserviceversion__.png (428.13 KB, image/png)
2020-08-26 22:55 UTC, tony.wu
no flags Details
2_URL_with__operators.coreos.com~v1alpha1~ClusterServiceVersion__.png (406.42 KB, image/png)
2020-08-26 22:56 UTC, tony.wu
no flags Details

System ID Priority Status Summary Last Updated
Github openshift console pull 6523 None closed Bug 1872919: Add routes for OCS OLM pages with full resource references 2020-09-21 08:51:46 UTC

Description tony.wu 2020-08-26 22:55:51 UTC
Created attachment 1712746 [details]

Description of problem:

With 'initialization-resource' CSV annotation, the console will direct users to "Operand Creation form" page for that specific custom resource.
However, it's noticed the "static plugin" doesn't handle the Operand form view's URL correctly to cover the fully qualified resource reference.

"NG" URL - "initialization-resource" CSV annotation:

--> See screenshot: 2_URL_with__operators.coreos.com~v1alpha1~ClusterServiceVersion__.png

"OK" URL - OCS team custom one:

--> See screenshot: 1_URL_with__clusterserviceversion__.png

Per Sam Padgett:
The plugin should handle both URLs, although the link probably should use the fully qualified resource reference.

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

How reproducible:

Steps to Reproduce:
1. Install OCS Operator (OpenShift Container Storage) from 'OperatorHub page'

2. Go to 'OpenShift Container Storage' Operator details page once it's installed.

3. Click on "Create Instance" of the "Storage Cluster" card
    --> See the custom creation form view from the plugin
    --> See screenshot: 1_URL_with__clusterserviceversion__.png

4. Replace the "/clusterserviceversions/" in the URL with "/operators.coreos.com~v1alpha1~ClusterServiceVersion/"
    --> See the regular creation form view from OLM UI
    --> See screenshot: 

Actual results:
The step 4. above (the same URL as "initialization-resource" CSV annotation use) is showing regular creation form view from OLM UI but not the static plugin one.

Expected results:
The step 4. above should be showing the same view as the one in step 3.  (from static plugin)

Additional info:
See the attached screenshots for references.

Comment 1 tony.wu 2020-08-26 22:56:06 UTC
Created attachment 1712747 [details]

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