Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1840973

Summary: keepYoungerThan is replacing by keepYoungerThanDuration for imagepruners config
Product: OpenShift Container Platform Reporter: Wenjing Zheng <wzheng>
Component: DocumentationAssignee: Vikram Goyal <vigoyal>
Status: CLOSED CURRENTRELEASE QA Contact: Wenjing Zheng <wzheng>
Severity: high Docs Contact: Vikram Goyal <vigoyal>
Priority: high    
Version: 4.5CC: aos-bugs, dahernan, jokerman, obulatov, osousa, palonsor, vigoyal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-03 09:30:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wenjing Zheng 2020-05-28 03:27:10 UTC
Document URL: 
https://docs.openshift.com/container-platform/4.4/applications/pruning-objects.html#pruning-images_pruning-objects

Section Number and Name: 

Describe the issue: 
Due to this bug https://bugzilla.redhat.com/show_bug.cgi?id=1835004, "keepYoungerThan" is deprecated, "keepYoungerThanDuration" is the new one. When they are both defined, keepYoungerThanDuration will take effect.

Suggestions for improvement: 

Additional information:

Comment 1 Wenjing Zheng 2020-05-28 10:15:45 UTC
It's better to completely remove keepYoungerThan from documentation,we can just mention that this field "keepYoungerThan" exists but shouldn't be used, it should be replaced by option "keepYoungerThanDuration".

Comment 2 Oleg Bulatov 2020-05-28 11:55:11 UTC
Note, in 4.4 we have only keepYoungerThan in integer nanoseconds (the documentation needs to be updated, it cannot be 60m, it should be 3600000000000).

In 4.5 we have both keepYoungerThan (nanoseconds) and keepYoungerThanDuration (string, for example: 60m or 1h). keepYoungerThanDuration, when it's set, takes precedence over keepYoungerThan. keepYoungerThan shouldn't be used by new clusters.

Comment 3 David Hernández Fernández 2020-07-14 10:00:14 UTC
The following bug is already released: https://bugzilla.redhat.com/show_bug.cgi?id=1835004

Please update the documentation, otherwise customers are creating new cases due to incorrect parameter in official docs.

Comment 5 Red Hat Bugzilla 2023-09-14 06:01:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days