diff --git a/changelogs/unreleased/5448-jxun b/changelogs/unreleased/5448-jxun new file mode 100644 index 000000000..4de8a8460 --- /dev/null +++ b/changelogs/unreleased/5448-jxun @@ -0,0 +1 @@ +Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.io" from restore by default. \ No newline at end of file diff --git a/pkg/controller/restore_controller.go b/pkg/controller/restore_controller.go index 092b90002..d0ff0769f 100644 --- a/pkg/controller/restore_controller.go +++ b/pkg/controller/restore_controller.go @@ -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 {