Merge pull request #5252 from cleverhu/add-csiSnapshotTimeout-for-describe

add CSISnapshotTimeout for describe backup
This commit is contained in:
Daniel Jiang
2022-09-05 14:44:36 +08:00
committed by GitHub
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.