From 5883fa178a59410c325075cfd29eba609102a065 Mon Sep 17 00:00:00 2001 From: Lalatendu Das Date: Wed, 30 Nov 2022 04:45:22 +0000 Subject: [PATCH] pb-3347: Make CSI volumes to use kdmp driver for NFS BL When Backuplocation type is NFS, then we will use KDMP driver to take backup for CSI volumes. Signed-off-by: Lalatendu Das --- drivers/volume/csi/csi.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/volume/csi/csi.go b/drivers/volume/csi/csi.go index 5d6fbb0846..9060ca7569 100644 --- a/drivers/volume/csi/csi.go +++ b/drivers/volume/csi/csi.go @@ -311,6 +311,10 @@ func (c *csi) OwnsPVCForBackup( crBackupType string, blType storkapi.BackupLocationType, ) bool { + // For CSI volume and backuplocation type is NFS, It will default to kdmp + if blType == storkapi.BackupLocationNFS { + return false + } if cmBackupType == storkapi.ApplicationBackupGeneric || crBackupType == storkapi.ApplicationBackupGeneric { // If user has forced the backupType in config map or applicationbackup CR, default to generic always return false