Skip to content

Commit

Permalink
Merge pull request #317 from portworx/PB-4606
Browse files Browse the repository at this point in the history
PB-4606: Check for Storage Class Present in Restore Cluster
  • Loading branch information
pallav-px authored Oct 25, 2023
2 parents 1701f8d + 14cdb50 commit 8676e20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controllers/dataexport/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (c *Controller) sync(ctx context.Context, in *kdmpapi.DataExport) (bool, er
data := updateDataExportDetail{
stage: kdmpapi.DataExportStageCleanup,
status: dataExport.Status.Status,
reason: "",
reason: dataExport.Status.Reason,
}
return false, c.updateStatus(dataExport, data)
}
Expand Down Expand Up @@ -1622,7 +1622,6 @@ func (c *Controller) restoreSnapshot(ctx context.Context, snapshotDriver snapsho
if err != nil {
return nil, err
}

pvc := &corev1.PersistentVolumeClaim{
ObjectMeta: metav1.ObjectMeta{
Name: toSnapshotPVCName(srcPvc.Name, string(de.UID)),
Expand Down

0 comments on commit 8676e20

Please sign in to comment.