Make CRD column printers consistent with typed printers
Almost all other server side printers use duration.HumanDuration which has higher precision output. Switch CRD printers to use this as well.
This commit is contained in:
@@ -67,5 +67,5 @@ func ConvertToHumanReadableDateType(timestamp metav1.Time) string {
|
||||
if timestamp.IsZero() {
|
||||
return "<unknown>"
|
||||
}
|
||||
return duration.ShortHumanDuration(time.Now().Sub(timestamp.Time))
|
||||
return duration.HumanDuration(time.Now().Sub(timestamp.Time))
|
||||
}
|
||||
|
Reference in New Issue
Block a user