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.

Signed-off-by: Xun Jiang <jxun@vmware.com>
  • Loading branch information
Xun Jiang committed Jun 30, 2022
1 parent 2778d54 commit d4fe031
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 @@ -75,6 +75,12 @@ 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",
}

type restoreController struct {
Expand Down

0 comments on commit d4fe031

Please sign in to comment.