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:
Phuong N. Hoang
2020-08-12 17:17:31 -07:00
committed by GitHub
co-authored by Phuong Hoang
parent dd2d040fcf
commit 14170b52a8
13 changed files with 219 additions and 5 deletions
+9 -1
View File
@@ -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.