Invalid value passed for keepYoungerThan in ImagePruner

Solution Verified - Updated -

Issue

  • Invalid data validation on spec.keepYoungerThan in ImagePruner definition.
  • While modifying the spec.keepYoungerThan as 1h, the following error is encountered:
# imagepruners.imageregistry.operator.openshift.io "cluster" was not valid:
# * spec.keepYoungerThan: Invalid value: "string": spec.keepYoungerThan in body must be of type integer: "string"

Environment

  • Red Hat OpenShift Container Platform [RHOCP]
    • v4.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content