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:
Clayton Coleman
2019-02-10 15:17:58 -05:00
parent b862590bfc
commit 6b1a5101c3

View File

@@ -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))
}