Skip to content

Commit

Permalink
PB-6687 :: Skip Portworx Volume in Case NFS Restore
Browse files Browse the repository at this point in the history
Signed-off-by: Vikas Kumar <[email protected]>
  • Loading branch information
vikasit12 committed May 10, 2024
1 parent 471fc1b commit 0f55878
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/executor/nfs/nfsrestorevolcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f55878

Please sign in to comment.