Exclude "csinodes.storage.k8s.io" and "volumeattachments.storage.k8s.io" from backup and restore by default.

Signed-off-by: Xun Jiang <jxun@vmware.com>
Signed-off-by: Xun Jiang <blackpiglet@gmail.com>
This commit is contained in:
Xun Jiang
2022-06-30 11:14:40 +08:00
committed by Xun Jiang
parent 59814d7378
commit 6fc19445b3
2 changed files with 7 additions and 0 deletions

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 {