diff --git a/changelogs/unreleased/2901-jenting b/changelogs/unreleased/2901-jenting new file mode 100644 index 000000000..6b175d920 --- /dev/null +++ b/changelogs/unreleased/2901-jenting @@ -0,0 +1 @@ +Use format version instead of version on `velero backup describe` since version has been deprecated diff --git a/pkg/cmd/util/output/backup_describer.go b/pkg/cmd/util/output/backup_describer.go index 9d813ce17..117ffa60f 100644 --- a/pkg/cmd/util/output/backup_describer.go +++ b/pkg/cmd/util/output/backup_describer.go @@ -232,7 +232,8 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) { func DescribeBackupStatus(d *Describer, backup *velerov1api.Backup, details bool, veleroClient clientset.Interface, insecureSkipTLSVerify bool, caCertPath string) { status := backup.Status - d.Printf("Backup Format Version:\t%d\n", status.Version) + // Status.Version has been deprecated, use Status.FormatVersion + d.Printf("Backup Format Version:\t%s\n", status.FormatVersion) d.Println() // "" output should only be applicable for backups that failed validation