mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
Show format version on velero backup describe (#2901)
* Show format version on velero backup describe Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com> * Add changelog Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
This commit is contained in:
1
changelogs/unreleased/2901-jenting
Normal file
1
changelogs/unreleased/2901-jenting
Normal file
@@ -0,0 +1 @@
|
||||
Use format version instead of version on `velero backup describe` since version has been deprecated
|
||||
@@ -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()
|
||||
// "<n/a>" output should only be applicable for backups that failed validation
|
||||
|
||||
Reference in New Issue
Block a user