pb-2156: Added logic to default to KDMP for OCP rdb and cephfs provisioner.
@@ -36,6 +36,8 @@ const (
// KDMPDriverName is the name of the kdmp driver implementation
KDMPDriverName = "kdmp"
pureCSIProvisioner = "pure-csi"
+ ocpCephfsProvisioner = "openshift-storage.cephfs.csi.ceph.com"
+ ocpRbdProvisioner = "openshift-storage.rbd.csi.ceph.com"
vSphereCSIProvisioner = "csi.vsphere.vmware.com"
efsCSIProvisioner = "efs.csi.aws.com"
azureFileCSIProvisioner = "file.csi.azure.com"
@@ -724,6 +726,10 @@ func IsCSIDriverWithoutSnapshotSupport(pv *v1.PersistentVolume) bool {
return true
}
}
+ // For now, it is decided to take generic backup for OCP provisoiners.
+ if driverName == ocpCephfsProvisioner || driverName == ocpRbdProvisioner {
+ return true
+ }
// vsphere, efs, azure file and google file does not support snapshot.
// So defaulting to kdmp by not setting volumesnapshot class.
for _, name := range csiDriverWithoutSnapshotSupport {
