add CSISnapshotTimeout for describe backup

Signed-off-by: cleverhu <shouping.hu@daocloud.io>
This commit is contained in:
cleverhu
2022-08-28 15:09:01 +08:00
parent 86762f442a
commit e77aaa32ca
2 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1 @@
Add csiSnapshotTimeout for describe backup

View File

@@ -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<none>\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.