Azure / ARO-RP

Azure Red Hat OpenShift RP

Home Page:https://azure.microsoft.com/products/openshift/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate CRD

mjudeikis opened this issue · comments

We use old API in our CRD. Need to update it

apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition`

This is being logged into RP logs when RP executed Operator deploy step and this resource is being deplyed.
https://github.com/Azure/ARO-RP/blob/master/pkg/operator/deploy/staticresources/aro.openshift.io_clusters.yaml#L3

We need to:

  1. Update this to stable api
  2. Make sure that when applied to old clusters PutOrPatch step updates existing CRD to new version (We already do Update call just need to make sure we can update the API version of existing object)