Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Xieql <[email protected]>
  • Loading branch information
Xieql committed Sep 6, 2023
1 parent 1f780ef commit e9678e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/backups/v1alpha1/backup_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ type BackupSpec struct {
Schedule string `json:"schedule,omitempty"`

// Destination indicates the clusters where backups should be performed.
// + required
Destination *Destination `json:"destination"`
// +required
Destination Destination `json:"destination"`

// Policy are the rules defining how backups should be performed.
// +optional
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/backups/v1alpha1/migrate_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ type MigrateSpec struct {
// SourceCluster represents the source cluster for migration.
// The user needs to ensure that SourceCluster points to only ONE cluster.
// Because the current migration only supports migrating from one SourceCluster to one or more TargetCluster.
// + required
// +required
SourceCluster *Destination `json:"sourceCluster"`

// TargetCluster represents the target clusters for migration.
// + required
// +required
TargetCluster *Destination `json:"targetCluster"`

// Policy defines the rules for the migration.
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/backups/v1alpha1/restore_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Restore struct {

type RestoreSpec struct {
// BackupName specifies the backup on which this restore operation is based.
// + required
// +required
BackupName string `json:"backupName"`

// Destination indicates the clusters where restore should be performed.
Expand Down

0 comments on commit e9678e0

Please sign in to comment.