Description of problem: Below warning appears in image pruner pod when image registry is removed: $ oc logs pods/image-pruner-27076840-79qkw W0625 08:40:02.621430 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob I0625 08:40:02.860125 1 prune.go:348] Creating image pruner with keepYoungerThan=1h0m0s, keepTagRevisions=3, pruneOverSizeLimit=<nil>, allImages=true Only API objects will be removed. No modifications to the image registry will be made. Summary: deleted 0 objects Version-Release number of selected component (if applicable): 4.8.0-0.nightly-2021-06-24-101028 How reproducible: always Steps to Reproduce: 1.Set spec.managementState to Removed in configs.imageregistry 2.Check the log in image pruner pod 3. Actual results: Below warning appears: W0625 08:40:02.621430 1 warnings.go:70] batch/v1beta1 CronJob is deprecated in v1.21+, unavailable in v1.25+; use batch/v1 CronJob Expected results: The warning should be removed Additional info:
Verified on 4.9.0-0.nightly-2021-07-14-204159 $ ./oc logs pods/image-pruner-27105317-m4j94 I0715 03:17:02.680478 1 prune.go:347] Creating image pruner with keepYoungerThan=1h0m0s, keepTagRevisions=3, pruneOverSizeLimit=<nil>, allImages=true Summary: deleted 0 objects
Case added.
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.9.0 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:3759