Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-2656

Logging uses deprecated v1beta1 apis


    • False
    • None
    • False
    • NEW
    • Impediment
    • * Before this update, the Operator was using versions of some APIs which are pending removal in future versions of {product-title}. This change moves dependencies to the supported API versions.(
    • Logging (Core) - Sprint 219, Logging (Core) - Sprint 220

      Description of problem:
      Logging 5.4 is utilizing cronjobs.v1beta1.batch which is deprecated and will be removed in Kube 1.25 and thus OpenShift 4.12. Clusters which have components which hit deprecated APIs which will be removed in the next release or next EUS release generate warning level alerts so that the admin knows that they've got something which must be addressed before upgrading to the next or next EUS release. Therefore we should ensure that all components which can be installed in 4.10 no longer utilized these deprecated APIs.

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

      How reproducible:

      Steps to Reproduce:
      1. Install 4.10.12+
      2. Install logging 5.4
      3. Observe APIRemovedInNextEUSReleaseInUse and retrieve apirequest counts on the cronjob api.

      Actual results:
      $ oc get apirequestcounts cronjobs.v1beta1.batch -o jsonpath='

      {range .status.currentHour..byUser[*]}




      {","} {.userAgent} {"\n"} {end}' | sort -k 2 -t, -u | column -t -s, -NVERBS,USERNAME,USERAGENT
      delete system:serviceaccount:openshift-logging:cluster-logging-operator cluster-logging-operator/v0.0.0

      Expected results:
      No use of deprecated APIs which will be removed in OCP 4.12.

      Additional info:
      Please see https://access.redhat.com/articles/6955381 which documents removals in 4.12

      Also upstream docs https://github.com/kubernetes/website/blob/main/content/en/docs/reference/using-api/deprecation-guide.md
      It'd be great to remove all deprecated API use for the next several releases if possible.

            jcantril@redhat.com Jeffrey Cantrill
            rhn-support-sdodson Scott Dodson
            Qiaoling Tang Qiaoling Tang
            0 Vote for this issue
            6 Start watching this issue