Skip to content

Commit

Permalink
Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.…
Browse files Browse the repository at this point in the history
…io" from backup and restore by default. (vmware-tanzu#5064)

Signed-off-by: Xun Jiang <jxun@vmware.com>

Signed-off-by: Xun Jiang <jxun@vmware.com>
Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
  • Loading branch information
sshende-catalogicsoftware committed Oct 20, 2022
1 parent 1b5abe7 commit 4fad3b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/5064-jxun
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.io" from restore by default.
9 changes: 9 additions & 0 deletions pkg/controller/restore_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ var nonRestorableResources = []string{
// created as needed if they don't exist.
// https://github.com/vmware-tanzu/velero/issues/1113
"resticrepositories.velero.io",

// CSINode delegates cluster node for CSI operation.
// VolumeAttachement records PV mounts to which node.
// https://github.com/vmware-tanzu/velero/issues/4823
"csinodes.storage.k8s.io",
"volumeattachments.storage.k8s.io",

// Backup repositories were renamed from Restic repositories
"backuprepositories.velero.io",
}

type restoreController struct {
Expand Down

0 comments on commit 4fad3b0

Please sign in to comment.