mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-19 22:44:21 +00:00
Enhance Backup to backup resources in specific order. (#2724)
Signed-off-by: Phuong Hoang <phuong.n.hoang@dell.com> Co-authored-by: Phuong Hoang <phuong.n.hoang@dell.com>
This commit is contained in:
co-authored by
Phuong Hoang
parent
dd2d040fcf
commit
14170b52a8
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2017, 2019 the Velero contributors.
|
||||
Copyright 2020 the Velero contributors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@@ -218,6 +218,14 @@ func DescribeBackupSpec(d *Describer, spec velerov1api.BackupSpec) {
|
||||
}
|
||||
}
|
||||
|
||||
if spec.OrderedResources != nil {
|
||||
d.Println()
|
||||
d.Printf("OrderedResources:\n")
|
||||
for key, value := range spec.OrderedResources {
|
||||
d.Printf("\t%s: %s\n", key, value)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// DescribeBackupStatus describes a backup status in human-readable format.
|
||||
|
||||
Reference in New Issue
Block a user