mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-03 11:45:20 +00:00
Merge pull request #7617 from Lyndon-Li/issue-fix-7583
Issue 7583: set backupName optional for Restore CRD
This commit is contained in:
1
changelogs/unreleased/7617-Lyndon-Li
Normal file
1
changelogs/unreleased/7617-Lyndon-Li
Normal 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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user