Merge pull request #7617 from Lyndon-Li/issue-fix-7583

Issue 7583: set backupName optional for Restore CRD
pull/7618/head
qiuming 2024-04-03 10:19:24 +08:00 committed by GitHub
commit dcd62b908f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -0,0 +1 @@
Fix issue #7583, set backupName optional for Restore CRD

View File

@ -432,8 +432,6 @@ spec:
nullable: true
type: boolean
type: object
required:
- backupName
type: object
status:
description: RestoreStatus captures the current status of a Velero restore

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,8 @@ import (
type RestoreSpec struct {
// BackupName is the unique name of the Velero backup to restore
// from.
BackupName string `json:"backupName"`
// +optional
BackupName string `json:"backupName,omitempty"`
// ScheduleName is the unique name of the Velero schedule to restore
// from. If specified, and BackupName is empty, Velero will restore