issue 7583: set backupName optional for Restore CRD

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2024-04-03 10:00:55 +08:00
parent 3465e8cddf
commit 711609e00e
4 changed files with 4 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
Fix issue #7583, set backupName optional for Restore CRD
@@ -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
+2 -1
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