Skip to content

Commit 5883fa1

Browse files
lalat-dassiva-portworx
authored andcommitted
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 <ldas@purestorage.com>
1 parent 82fd21d commit 5883fa1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/volume/csi/csi.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ func (c *csi) OwnsPVCForBackup(
311311
crBackupType string,
312312
blType storkapi.BackupLocationType,
313313
) bool {
314+
// For CSI volume and backuplocation type is NFS, It will default to kdmp
315+
if blType == storkapi.BackupLocationNFS {
316+
return false
317+
}
314318
if cmBackupType == storkapi.ApplicationBackupGeneric || crBackupType == storkapi.ApplicationBackupGeneric {
315319
// If user has forced the backupType in config map or applicationbackup CR, default to generic always
316320
return false

0 commit comments

Comments
 (0)