From 84c98d1a19c31c9b42f6e018fdd7b0989f5979d5 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/executor/nfs/nfsrestorevolcreate.go b/pkg/executor/nfs/nfsrestorevolcreate.go index 55f86781d..9f0c4072a 100644 --- a/pkg/executor/nfs/nfsrestorevolcreate.go +++ b/pkg/executor/nfs/nfsrestorevolcreate.go @@ -135,6 +135,12 @@ func restoreVolResourcesAndApply( if volumeBackup.Namespace != namespace { continue } + + // Skip portworx volumes in case of nfsRestore PB-6687 + if driverName == "pxd" { + continue + } + // If a list of resources was specified during restore check if // this PVC was included info.Name = volumeBackup.PersistentVolumeClaim