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. (#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
blackpiglet authored Sep 29, 2022
1 parent eec27e9 commit 3f3a505
Show file tree
Hide file tree
Showing 2 changed files with 7 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.
6 changes: 6 additions & 0 deletions pkg/controller/restore_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ var nonRestorableResources = []string{
// 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",
}
Expand Down

0 comments on commit 3f3a505

Please sign in to comment.