mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-06 13:26:26 +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:
@@ -181,3 +181,9 @@ func (b *BackupBuilder) Hooks(hooks velerov1api.BackupHooks) *BackupBuilder {
|
||||
b.object.Spec.Hooks = hooks
|
||||
return b
|
||||
}
|
||||
|
||||
// OrderedResources sets the Backup's OrderedResources
|
||||
func (b *BackupBuilder) OrderedResources(orders map[string]string) *BackupBuilder {
|
||||
b.object.Spec.OrderedResources = orders
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user