Merge pull request #5448 from blackpiglet/release-1.9

[cherry-pick][release-1.9] Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.…
This commit is contained in:
Scott Seago
2022-10-14 11:20:42 -04:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.io" from restore by default.

View File

@@ -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 {