issue fix 6662

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
pull/6667/head
Lyndon-Li 2023-08-17 10:02:23 +08:00
parent 30e54b026f
commit dac28084a3
4 changed files with 5 additions and 4 deletions

View File

@ -206,7 +206,7 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) {
d.Printf("Velero-Native Snapshot PVs:\t%s\n", BoolPointerString(spec.SnapshotVolumes, "false", "true", "auto")) d.Printf("Velero-Native Snapshot PVs:\t%s\n", BoolPointerString(spec.SnapshotVolumes, "false", "true", "auto"))
d.Printf("Snapshot Move Data:\t%s\n", BoolPointerString(spec.SnapshotMoveData, "false", "true", "auto")) d.Printf("Snapshot Move Data:\t%s\n", BoolPointerString(spec.SnapshotMoveData, "false", "true", "auto"))
if len(spec.DataMover) == 0 { if len(spec.DataMover) == 0 {
s = emptyDisplay s = defaultDataMover
} else { } else {
s = spec.DataMover s = spec.DataMover
} }

View File

@ -212,7 +212,7 @@ Storage Location: backup-location
Velero-Native Snapshot PVs: auto Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto Snapshot Move Data: auto
Data Mover: <none> Data Mover: velero
TTL: 0s TTL: 0s

View File

@ -37,6 +37,7 @@ import (
const ( const (
downloadRequestTimeout = 30 * time.Second downloadRequestTimeout = 30 * time.Second
emptyDisplay = "<none>" emptyDisplay = "<none>"
defaultDataMover = "velero"
) )
// BindFlags defines a set of output-specific flags within the provided // BindFlags defines a set of output-specific flags within the provided

View File

@ -42,7 +42,7 @@ Backup Template:
Velero-Native Snapshot PVs: auto Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto Snapshot Move Data: auto
Data Mover: <none> Data Mover: velero
TTL: 0s TTL: 0s
@ -86,7 +86,7 @@ Backup Template:
Velero-Native Snapshot PVs: auto Velero-Native Snapshot PVs: auto
Snapshot Move Data: auto Snapshot Move Data: auto
Data Mover: <none> Data Mover: velero
TTL: 0s TTL: 0s