Handle backup of volume by resource policies (#5901)

* Handle backup of volume by resource policies

Signed-off-by: Ming <mqiu@vmware.com>
This commit is contained in:
qiuming
2023-03-21 14:39:25 +08:00
committed by GitHub
parent ec88dc5203
commit 086dbd344f
22 changed files with 1504 additions and 10 deletions
+1 -3
View File
@@ -258,10 +258,8 @@ func getNextRunTime(schedule *velerov1.Schedule, cronSchedule cron.Schedule, asO
func getBackup(item *velerov1.Schedule, timestamp time.Time) *velerov1.Backup {
name := item.TimestampedName(timestamp)
backup := builder.
return builder.
ForBackup(item.Namespace, name).
FromSchedule(item).
Result()
return backup
}