Bug 1928931

Summary: DNSRecord CRD is using deprecated v1beta1 API
Product: OpenShift Container Platform Reporter: Ryan Fredette <rfredette>
Component: NetworkingAssignee: Ryan Fredette <rfredette>
Networking sub component: router QA Contact: Arvind iyengar <aiyengar>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: aiyengar, amcdermo, aos-bugs, hongli
Version: 4.8   
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 22:44:45 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 Ryan Fredette 2021-02-15 19:51:06 UTC
Description of problem: the v1beta1 version of CustomResourceDefinition is being removed in k8s 1.22, in favor of the v1 version of the API. 

The DNSRecord CRD in cluster-ingress-operator still uses the v1beta1 version and should be updated


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Ryan Fredette 2021-03-17 16:10:01 UTC
the fix has been merged to github.com/openshift/api, but DNSRecord is copied into another location for builds in github.com/openshift/cluster-ingress-operator , which I still need to create a PR to update. Moving back to assigned state until that's complete.

Comment 4 Hongan Li 2021-03-29 09:19:01 UTC
verified with 4.8.0-0.nightly-2021-03-26-054333 and passed.

$ oc get customresourcedefinitions.apiextensions.k8s.io dnsrecords.ingress.operator.openshift.io -oyaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
<---snip--->
spec:
  conversion:
    strategy: None
  group: ingress.operator.openshift.io
  names:
    kind: DNSRecord
    listKind: DNSRecordList
    plural: dnsrecords
    singular: dnsrecord
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:

Comment 7 errata-xmlrpc 2021-07-27 22:44:45 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