mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-16 13:04:23 +00:00
Add BackupType in backup.spec.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
This commit is contained in:
@@ -321,6 +321,11 @@ func (b *BackupBuilder) ParallelFilesUpload(parallel int) *BackupBuilder {
|
||||
return b
|
||||
}
|
||||
|
||||
func (b *BackupBuilder) BackupType(backupType velerov1api.BackupType) *BackupBuilder {
|
||||
b.object.Spec.BackupType = backupType
|
||||
return b
|
||||
}
|
||||
|
||||
// WithStatus sets the Backup's status.
|
||||
func (b *BackupBuilder) WithStatus(status velerov1api.BackupStatus) *BackupBuilder {
|
||||
b.object.Status = status
|
||||
|
||||
Reference in New Issue
Block a user