diff --git a/changelogs/unreleased/5252-cleverhu b/changelogs/unreleased/5252-cleverhu new file mode 100644 index 000000000..d478a5750 --- /dev/null +++ b/changelogs/unreleased/5252-cleverhu @@ -0,0 +1 @@ +Add csiSnapshotTimeout for describe backup \ No newline at end of file diff --git a/pkg/cmd/util/output/backup_describer.go b/pkg/cmd/util/output/backup_describer.go index 2bc742c9f..f8c05c156 100644 --- a/pkg/cmd/util/output/backup_describer.go +++ b/pkg/cmd/util/output/backup_describer.go @@ -110,7 +110,6 @@ func DescribeBackup( d.Println() DescribePodVolumeBackups(d, podVolumeBackups, details) } - }) } @@ -165,6 +164,9 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) { d.Println() d.Printf("TTL:\t%s\n", spec.TTL.Duration) + d.Println() + d.Printf("CSISnapshotTimeout:\t%s\n", &spec.CSISnapshotTimeout.Duration) + d.Println() if len(spec.Hooks.Resources) == 0 { d.Printf("Hooks:\t\n") @@ -241,7 +243,6 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) { d.Printf("\t%s: %s\n", key, value) } } - } // DescribeBackupStatus describes a backup status in human-readable format.