Skip to content

Commit

Permalink
fixup! fix: Restore type enum validation
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Oliveira <msouzaol@redhat.com>
  • Loading branch information
mateusoliveira43 committed Dec 4, 2023
1 parent c61fb99 commit ba6ba6e
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 117 deletions.
2 changes: 2 additions & 0 deletions config/crd/v2alpha1/bases/velero.io_datauploads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ spec:
snapshotType:
description: SnapshotType is the type of the snapshot to be backed
up.
enum:
- CSI
type: string
sourceNamespace:
description: SourceNamespace is the original namespace where the volume
Expand Down
2 changes: 1 addition & 1 deletion config/crd/v2alpha1/crds/crds.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pkg/apis/velero/v1/backup_repository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ const (
BackupRepositoryPhaseNew BackupRepositoryPhase = "New"
BackupRepositoryPhaseReady BackupRepositoryPhase = "Ready"
BackupRepositoryPhaseNotReady BackupRepositoryPhase = "NotReady"

BackupRepositoryTypeRestic string = "restic"
BackupRepositoryTypeKopia string = "kopia"
)

// BackupRepositoryStatus is the current status of a BackupRepository.
Expand Down
Loading

0 comments on commit ba6ba6e

Please sign in to comment.