Skip to content

Commit

Permalink
Allow sparse option for Kopia & Restic restore
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Qiu <mqiu@vmware.com>
  • Loading branch information
qiuming-best committed Nov 24, 2023
1 parent b276564 commit dfb8935
Show file tree
Hide file tree
Showing 42 changed files with 229 additions and 44 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/7141-qiuming-best
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow sparse option for Kopia & Restic restore
5 changes: 4 additions & 1 deletion config/crd/v1/bases/velero.io_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,15 @@ spec:
type: string
uploaderConfig:
description: UploaderConfig specifies the configuration for the uploader.
nullable: true
properties:
parallelFilesUpload:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
volumeSnapshotLocations:
description: VolumeSnapshotLocations is a list containing names of
Expand Down
4 changes: 4 additions & 0 deletions config/crd/v1/bases/velero.io_podvolumebackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ spec:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
uploaderType:
description: UploaderType is the type of the uploader to handle the
Expand Down
12 changes: 12 additions & 0 deletions config/crd/v1/bases/velero.io_podvolumerestores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ spec:
description: SourceNamespace is the original namespace for namaspace
mapping.
type: string
uploaderConfig:
description: UploaderConfig specifies the configuration for the uploader.
properties:
parallelFilesUpload:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
uploaderType:
description: UploaderType is the type of the uploader to handle the
data transfer.
Expand Down
12 changes: 12 additions & 0 deletions config/crd/v1/bases/velero.io_restores.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,18 @@ spec:
restore from the most recent successful backup created from this
schedule.
type: string
uploaderConfig:
description: UploaderConfig specifies the configuration for the uploader.
properties:
parallelFilesUpload:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
required:
- backupName
type: object
Expand Down
5 changes: 4 additions & 1 deletion config/crd/v1/bases/velero.io_schedules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,15 @@ spec:
uploaderConfig:
description: UploaderConfig specifies the configuration for the
uploader.
nullable: true
properties:
parallelFilesUpload:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether
write files sparsely or not.
type: boolean
type: object
volumeSnapshotLocations:
description: VolumeSnapshotLocations is a list containing names
Expand Down
10 changes: 5 additions & 5 deletions config/crd/v1/crds/crds.go

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions config/crd/v2alpha1/bases/velero.io_datadownloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ spec:
- pv
- pvc
type: object
uploaderConfig:
description: UploaderConfig specifies the configuration for the uploader.
properties:
parallelFilesUpload:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
required:
- backupStorageLocation
- operationTimeout
Expand Down
4 changes: 4 additions & 0 deletions config/crd/v2alpha1/bases/velero.io_datauploads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ spec:
description: ParallelFilesUpload is the number of files parallel
uploads to perform when using the uploader.
type: integer
writeSparseFiles:
description: WriteSparseFiles is a flag to indicate whether write
files sparsely or not.
type: boolean
type: object
required:
- backupStorageLocation
Expand Down
Loading

0 comments on commit dfb8935

Please sign in to comment.