Skip to content

Commit

Permalink
pb-3347: Make CSI volumes to use kdmp driver for NFS BL
Browse files Browse the repository at this point in the history
When Backuplocation type is NFS, then we will use KDMP driver to take
backup for CSI volumes.

Signed-off-by: Lalatendu Das <[email protected]>
  • Loading branch information
lalat-das authored and siva-portworx committed Nov 30, 2022
1 parent 82fd21d commit 5883fa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/volume/csi/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5883fa1

Please sign in to comment.