From ce13da668f62d7f3bb17777b4b39d7d6d16584f2 Mon Sep 17 00:00:00 2001 From: Vikas Kumar Date: Thu, 9 May 2024 17:15:45 +0000 Subject: [PATCH] PB-6687 :: Skip Portworx Volume in Case NFS Restore Signed-off-by: Vikas Kumar --- pkg/executor/nfs/nfsrestorevolcreate.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/executor/nfs/nfsrestorevolcreate.go b/pkg/executor/nfs/nfsrestorevolcreate.go index 55f86781d..bfe9f8c72 100644 --- a/pkg/executor/nfs/nfsrestorevolcreate.go +++ b/pkg/executor/nfs/nfsrestorevolcreate.go @@ -135,6 +135,13 @@ func restoreVolResourcesAndApply( if volumeBackup.Namespace != namespace { continue } + + // Skip portworx volumes in case of nfsRestore PB-6687 + if driverName == "pxd" { + logrus.Debugf("%s : Skipping portworx volume %s", funct, volumeBackup.Volume) + continue + } + // If a list of resources was specified during restore check if // this PVC was included info.Name = volumeBackup.PersistentVolumeClaim