diff --git a/pkg/controllers/dataexport/reconcile.go b/pkg/controllers/dataexport/reconcile.go index daa5dab39..b29fa126c 100644 --- a/pkg/controllers/dataexport/reconcile.go +++ b/pkg/controllers/dataexport/reconcile.go @@ -1623,6 +1623,11 @@ func (c *Controller) restoreSnapshot(ctx context.Context, snapshotDriver snapsho return nil, err } + _, scErr := core.Instance().GetStorageClassForPVC(srcPvc) + if scErr != nil { + return nil, err + } + pvc := &corev1.PersistentVolumeClaim{ ObjectMeta: metav1.ObjectMeta{ Name: toSnapshotPVCName(srcPvc.Name, string(de.UID)),