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-02 16:57:32 +08:00
parent 3465e8cddf
commit 711609e00e
4 changed files with 4 additions and 4 deletions

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