Bug 1871920

Summary: Dynamic Sources/channels should use latest version available
Product: OpenShift Container Platform Reporter: Jaivardhan Kumar <jakumar>
Component: Dev ConsoleAssignee: Jaivardhan Kumar <jakumar>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: high Docs Contact:
Priority: high    
Version: 4.5CC: aos-bugs, kjeeyar, nmukherj, spathak
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1889982 (view as bug list) Environment:
Last Closed: 2020-10-27 16:31:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1889982    
Attachments:
Description Flags
Dynamic Sources/channels uses latest version available-1
none
Dynamic Sources/channels should use latest version available-2 none

Description Jaivardhan Kumar 2020-08-24 15:27:13 UTC
Description: Currently in ODC Version is picked from CRDs bases on field `storage` and `served` as true however should pick latest version as done for search creation across
versions:
  - name: v1alpha1
     served: true
     storage: true
  - name: v1beta1
     served: true
     storage: false
Here in eventSource creation version used is `v1alpha1` however it should be `v1beta1`.

Prerequisites (if any, like setup, operators/versions): Install Serverless operator

Steps to Reproduce
- Go to DevPerspective -> Add -> EventSource/Channel
- Create eventSource/channel

Actual results: considering above sample version used will be `v1alpha1` for creation

Expected results: considering above sample version used should be `v1beta1` for creation

Reproducibility (Always/Intermittent/Only Once): Always


Additional info: In search flows across Admin/Dev Perspective makes use of latest version https://github.com/openshift/console/blob/master/frontend/public/module/k8s/k8s.ts#L97

Comment 1 Jaivardhan Kumar 2020-08-24 15:29:16 UTC
Associated Jira ticket https://issues.redhat.com/browse/ODC-4477

Comment 4 Karthik Jeeyar 2020-09-21 07:49:42 UTC
Verified on
Build number: 4.6.0-0.nightly-2020-09-20-184226
Url: https://console-openshift-console.apps.dev-svc-4.6-092101.devcluster.openshift.com/add/ns/openshift-operators
User: Kubeadmin

Comment 6 spathak@redhat.com 2020-10-27 13:46:45 UTC
Created attachment 1724533 [details]
Dynamic Sources/channels uses latest version available-1

Comment 7 spathak@redhat.com 2020-10-27 13:50:34 UTC
Created attachment 1724535 [details]
Dynamic Sources/channels should use latest version available-2

Comment 8 errata-xmlrpc 2020-10-27 16:31:27 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196