Description of problem: There are "batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob" and "policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1" shown in registry operator logs Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-05-31-085539 How reproducible: always Steps to Reproduce: 1. #for project in openshift-image-registry; do echo "namespace is: " $project; for pod_name in $(oc get pod -n $project| grep -v NAME | awk '{print $1}'); do echo "pod name is: " $pod_name; for container in $(oc -n $project get pods $pod_name -o jsonpath="{.spec.containers[*].name}"); do echo container: $container;oc -n $project logs -c $container $pod_name | grep "batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob"| head -n3; done; echo -e "\n";done;echo -e "\n"; done 2. 3. Actual results: namespace is: openshift-image-registry pod name is: cluster-image-registry-operator-5c5bb4fd88-qtcnk container: cluster-image-registry-operator W0531 23:13:21.946376 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob W0531 23:13:22.022071 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob W0531 23:13:22.413761 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob namespace is: openshift-image-registry pod name is: cluster-image-registry-operator-5c5bb4fd88-qtcnk container: cluster-image-registry-operator W0531 23:13:22.065294 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W0531 23:13:22.093656 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget W0531 23:15:47.435153 1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget Expected results: Should use policy/v1 PodDisruptionBudget and batch/v1 CronJob Additional info:
Validate this bug before pr merged. Manually move to verified.
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