Files
velero/changelogs/unreleased
RalthosandGitHub 8d275e69cc Print n/a for unset timestamps in backup and restore get (#10206)
velero backup get prints <nil> in CREATED for a backup that never
started, and velero restore get prints it in both STARTED and COMPLETED.
The timestamps are *metav1.Time and are appended to the row unformatted,
so a nil pointer reaches the user as Go's nil literal.

This is reachable in ordinary use. A backup that fails validation never
starts, so StartTimestamp is never set, and a restore that fails
validation gets neither timestamp.

formatTimestamp returns n/a for an unset value, matching
humanReadableTimeFromNow, which already handles a zero expiration in the
same row. A set timestamp is unchanged.

Adds tests for both printers, which had no row-level coverage.

Signed-off-by: saral <ilovegojo2580@gmail.com>
2026-08-12 15:42:53 +08:00
..
2026-02-24 23:17:03 +08:00
2026-03-02 10:49:14 +11:00
2026-03-19 02:38:11 +05:30
2026-03-24 20:49:16 +05:30
2026-04-17 15:38:44 +08:00
2026-04-21 14:14:24 +08:00
2026-04-28 03:11:49 -04:00
2026-05-22 06:26:40 +00:00
2026-05-27 14:59:16 +08:00
2026-05-28 14:41:54 +08:00
2026-06-03 13:23:08 +08:00
2026-06-16 17:47:21 +08:00
2026-06-18 15:39:44 +08:00
2026-07-11 10:09:39 +08:00
2026-07-17 16:35:19 +08:00