Bug 1950409

Summary: Descheduler operator code and docs still reference v1beta1
Product: OpenShift Container Platform Reporter: Mike Dame <mdame>
Component: kube-schedulerAssignee: Mike Dame <mdame>
Status: CLOSED ERRATA QA Contact: RamaKasturi <knarra>
Severity: low Docs Contact:
Priority: low    
Version: 4.8CC: aos-bugs, kahara, maszulik, mfojtik, mfuruta
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:01:29 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:

Description Mike Dame 2021-04-16 15:01:58 UTC
The cluster-kube-descheduler-operator added a v1 version of its API, but the README, examples, and code still use v1beta1. These should be updated to v1

Comment 2 RamaKasturi 2021-04-19 07:24:03 UTC
NO new operator yet

Comment 3 RamaKasturi 2021-04-20 09:40:57 UTC
Verified the bug with the latest build but still see a reference to v1beta1, @mike, could you please help take a look ?

[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2021-04-18-203506]$ ./oc get csv clusterkubedescheduleroperator.4.8.0-202104190907.p0 -o yaml | grep v1beta1
    operatorframework.io/properties: '{"properties":[{"type":"olm.gvk","value":{"group":"operator.openshift.io","kind":"KubeDescheduler","version":"v1"}},{"type":"olm.gvk","value":{"group":"operator.openshift.io","kind":"KubeDescheduler","version":"v1beta1"}},{"type":"olm.package","value":{"packageName":"cluster-kube-descheduler-operator","version":"4.8.0-202104190907.p0"}}]}'

All other places have been updated:
=====================================
[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2021-04-18-203506]$ ./oc get csv clusterkubedescheduleroperator.4.8.0-202104190907.p0 -o yaml | grep v1
apiVersion: operators.coreos.com/v1alpha1
          "apiVersion": "operator.openshift.io/v1",
    operatorframework.io/properties: '{"properties":[{"type":"olm.gvk","value":{"group":"operator.openshift.io","kind":"KubeDescheduler","version":"v1"}},{"type":"olm.gvk","value":{"group":"operator.openshift.io","kind":"KubeDescheduler","version":"v1beta1"}},{"type":"olm.package","value":{"packageName":"cluster-kube-descheduler-operator","version":"4.8.0-202104190907.p0"}}]}'
      version: v1

    message: CSV minKubeVersion (1.21.0) less than server version (v1.21.0-rc.0+b2955f1)
    version: v1alpha1
    version: v1
      version: v1
      version: v1
      version: v1
      version: v1
      version: v1
      version: v1
      version: v1
    version: v1

[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2021-04-18-203506]$ ./oc get kubedescheduler cluster -o yaml
apiVersion: operator.openshift.io/v1
kind: KubeDescheduler
metadata:

Comment 4 Mike Dame 2021-04-20 12:43:35 UTC
Hi,
That reference is just showing that the v1beta1 is still available (we need to temporarily support both versions for people to upgrade). So everything else looks good, and that is the appropriate place for it to show up.

Comment 5 RamaKasturi 2021-04-20 16:04:44 UTC
verified with the build below

[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2021-04-18-203506]$ ./oc get csv
NAME                                                   DISPLAY                     VERSION                 REPLACES   PHASE
clusterkubedescheduleroperator.4.8.0-202104190907.p0   Kube Descheduler Operator   4.8.0-202104190907.p0              Succeeded

[knarra@knarra openshift-client-linux-4.8.0-0.nightly-2021-04-18-203506]$ ./oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.8.0-0.nightly-2021-04-19-225513   True        False         10h     Cluster version is 4.8.0-0.nightly-2021-04-19-225513

Based on comment3 and comment4 moving the bug to verified state.

Comment 8 errata-xmlrpc 2021-07-27 23:01:29 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.8.2 bug fix and security 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-2021:2438