mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 13:55:20 +00:00
remove backup.status.volumeBackups and all related code
Signed-off-by: Steve Kriss <krisss@vmware.com>
This commit is contained in:
@@ -210,17 +210,7 @@ func DescribeBackupStatus(d *Describer, backup *velerov1api.Backup, details bool
|
||||
d.Printf("Expiration:\t%s\n", status.Expiration.Time)
|
||||
d.Println()
|
||||
|
||||
if len(status.VolumeBackups) > 0 {
|
||||
// pre-v0.10 backup
|
||||
d.Printf("Persistent Volumes:\n")
|
||||
for pvName, info := range status.VolumeBackups {
|
||||
printSnapshot(d, pvName, info.SnapshotID, info.Type, info.AvailabilityZone, info.Iops)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if status.VolumeSnapshotsAttempted > 0 {
|
||||
// v0.10+ backup
|
||||
if !details {
|
||||
d.Printf("Persistent Volumes:\t%d of %d snapshots completed successfully (specify --details for more information)\n", status.VolumeSnapshotsCompleted, status.VolumeSnapshotsAttempted)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user