diff --git a/pkg/apis/backups/v1alpha1/backup_type.go b/pkg/apis/backups/v1alpha1/backup_type.go index 40bce8be0..791288af3 100644 --- a/pkg/apis/backups/v1alpha1/backup_type.go +++ b/pkg/apis/backups/v1alpha1/backup_type.go @@ -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 diff --git a/pkg/apis/backups/v1alpha1/migrate_type.go b/pkg/apis/backups/v1alpha1/migrate_type.go index 663628ab3..91c3df127 100644 --- a/pkg/apis/backups/v1alpha1/migrate_type.go +++ b/pkg/apis/backups/v1alpha1/migrate_type.go @@ -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. diff --git a/pkg/apis/backups/v1alpha1/restore_type.go b/pkg/apis/backups/v1alpha1/restore_type.go index f044897ea..f42f2be1c 100644 --- a/pkg/apis/backups/v1alpha1/restore_type.go +++ b/pkg/apis/backups/v1alpha1/restore_type.go @@ -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.