Skip to content

Commit cccb125

Browse files
committed
Remove Restic code path from PodVolumeRestore.
Signed-off-by: Xun Jiang <xun.jiang@broadcom.com>
1 parent fc6361b commit cccb125

15 files changed

Lines changed: 10 additions & 539 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove Restic code path from PodVolumeRestore.

cmd/velero-restore-helper/velero-restore-helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func main() {
3535
for {
3636
<-ticker.C
3737
if done() {
38-
fmt.Println("All restic restores are done")
38+
fmt.Println("All FS restores are done")
3939
err := removeFolder()
4040
if err != nil {
4141
fmt.Println(err)

config/crd/v1/bases/velero.io_backuprepositories.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ spec:
6565
description: RepositoryType indicates the type of the backend repository
6666
enum:
6767
- kopia
68-
- restic
69-
- ""
7068
type: string
7169
resticIdentifier:
7270
description: Deprecated

config/crd/v1/bases/velero.io_podvolumebackups.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ spec:
161161
data transfer.
162162
enum:
163163
- kopia
164-
- restic
165-
- ""
166164
type: string
167165
volume:
168166
description: |-

config/crd/v1/bases/velero.io_podvolumerestores.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ spec:
154154
data transfer.
155155
enum:
156156
- kopia
157-
- restic
158-
- ""
159157
type: string
160158
volume:
161159
description: Volume is the name of the volume within the Pod to be

config/crd/v1/crds/crds.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/resourcepolicies/resource_policies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const (
3838
ConfigmapRefType string = "configmap"
3939
// skip action implies the volume would be skipped from the backup operation
4040
Skip VolumeActionType = "skip"
41-
// fs-backup action implies that the volume would be backed up via file system copy method using the uploader(kopia/restic) configured by the user
41+
// fs-backup action implies that the volume would be backed up via file system copy method using the uploader(kopia) configured by the user
4242
FSBackup VolumeActionType = "fs-backup"
4343
// snapshot action can have 3 different meaning based on velero configuration and backup spec - cloud provider based snapshots, local csi snapshots and datamover snapshots
4444
Snapshot VolumeActionType = "snapshot"

pkg/apis/velero/v1/backup_repository_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type BackupRepositorySpec struct {
3131
BackupStorageLocation string `json:"backupStorageLocation"`
3232

3333
// RepositoryType indicates the type of the backend repository
34-
// +kubebuilder:validation:Enum=kopia;restic;""
34+
// +kubebuilder:validation:Enum=kopia
3535
// +optional
3636
RepositoryType string `json:"repositoryType"`
3737

pkg/apis/velero/v1/pod_volume_backup_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type PodVolumeBackupSpec struct {
4343
RepoIdentifier string `json:"repoIdentifier"`
4444

4545
// UploaderType is the type of the uploader to handle the data transfer.
46-
// +kubebuilder:validation:Enum=kopia;restic;""
46+
// +kubebuilder:validation:Enum=kopia
4747
// +optional
4848
UploaderType string `json:"uploaderType"`
4949

pkg/apis/velero/v1/pod_volume_restore_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type PodVolumeRestoreSpec struct {
3939
RepoIdentifier string `json:"repoIdentifier"`
4040

4141
// UploaderType is the type of the uploader to handle the data transfer.
42-
// +kubebuilder:validation:Enum=kopia;restic;""
42+
// +kubebuilder:validation:Enum=kopia
4343
// +optional
4444
UploaderType string `json:"uploaderType"`
4545

0 commit comments

Comments
 (0)