Bug 1690708

Summary: The OLM API group version is inappropriate
Product: OpenShift Container Platform Reporter: Jian Zhang <jiazha>
Component: OLMAssignee: Evan Cordell <ecordell>
Status: CLOSED ERRATA QA Contact: Jian Zhang <jiazha>
Severity: high Docs Contact:
Priority: high    
Version: 4.1.0CC: chezhang, dyan, jfan, zitang
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:46:13 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:

Description Jian Zhang 2019-03-20 04:29:44 UTC
Description of problem:
The API group version(v1alpha1) is inappropriate as a GA feature.

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

How reproducible:

Steps to Reproduce:
1. Install the OCP 4.0.
2. Install an operator on the Web console, for example, etcd-operator.
3. Check the subscription/InstallPlan/csv resources.

Actual results:
[jzhang@dhcp-140-18 ocp119]$ oc get sub etcd -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
[jzhang@dhcp-140-18 ocp119]$ oc get ip install-bpf6g -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: InstallPlan
[jzhang@dhcp-140-18 ocp119]$ oc get csv etcdoperator.v0.9.2 -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion

The apiVersion is "operators.coreos.com/v1alpha1"

Expected results:
As a GA feature, the "v1alpha1" is inappropriate. Should change it to "v1".

Additional info:

Comment 1 Evan Cordell 2019-03-29 18:05:38 UTC
This is fixed here: https://github.com/operator-framework/operator-lifecycle-manager/pull/774

The decision from Jessica/Clayton was to make OperatorGroup and PackageManifests v1, and keep the other objects at v1alpha1.

Comment 3 Jian Zhang 2019-04-03 08:52:22 UTC
[jzhang@dhcp-140-18 ocp43]$ oc get og olm-operators -o yaml |grep api
apiVersion: operators.coreos.com/v1
[jzhang@dhcp-140-18 ocp43]$ oc get packagemanifest packageserver -o yaml|grep api
apiVersion: packages.operators.coreos.com/v1

[jzhang@dhcp-140-18 ocp43]$ oc get sub packageserver -o yaml|grep api
apiVersion: operators.coreos.com/v1alpha1
[jzhang@dhcp-140-18 ocp43]$ oc get ip install-kswwg -o yaml|grep api
apiVersion: operators.coreos.com/v1alpha1
[jzhang@dhcp-140-18 ocp43]$ oc get csv etcdoperator.v0.9.4-clusterwide -o yaml|grep apiVersion
apiVersion: operators.coreos.com/v1alpha1
[jzhang@dhcp-140-18 ocp43]$ oc get catsrc olm-operators -o yaml|grep apiVersion
apiVersion: operators.coreos.com/v1alpha1

Per comment 1, LGTM, verify it.
OLM version:

Comment 5 errata-xmlrpc 2019-06-04 10:46:13 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.