mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-09 06:33:22 +00:00
When creating backup from schedule, allow default name (#2569)
* When creating backup from schedule, allow default name Signed-off-by: Christoph Blecker <admin@toph.ca>
This commit is contained in:
committed by
GitHub
parent
40d8511f64
commit
ceae7a2fdc
@@ -288,7 +288,7 @@ func getNextRunTime(schedule *api.Schedule, cronSchedule cron.Schedule, asOf tim
|
||||
}
|
||||
|
||||
func getBackup(item *api.Schedule, timestamp time.Time) *api.Backup {
|
||||
name := fmt.Sprintf("%s-%s", item.Name, timestamp.Format("20060102150405"))
|
||||
name := item.TimestampedName(timestamp)
|
||||
backup := builder.
|
||||
ForBackup(item.Namespace, name).
|
||||
FromSchedule(item).
|
||||
|
||||
Reference in New Issue
Block a user