Commit cd84b89
Summary of Changes: (openshift#379)
Move PVC Request Size Patch to Backup CSI Action
Shifted the logic that patches the PVC request size (to match the corresponding VolumeSnapshot size) from the CSI Restore action to the CSI Backup action.
✅ This enables restoring a PVC independently using label selectors, without requiring the VolumeSnapshot to be restored first.
Include VolumeSnapshot in CSI Additional Items for PVC
Added VolumeSnapshot as an additional item in the PVC CSI backup logic to ensure necessary metadata is available during restore.
Include VolumeSnapshotContent in CSI Restore Additional Items
Added VolumeSnapshotContent to the additional items in the CSI restore action to support a more complete restore workflow.
✅ This to make sure those resources are restored even if filters out by label from the resources list to restore
Author: Amos Mastbaum <[email protected]>
Signed-off-by: Amos Mastbaum <[email protected]>
fixing-after-michal
wait-for-vsc.Status.RestoreSize
wait-for-vsc.Status.RestoreSize
Update pkg/util/csi/volume_snapshot.go
Update pkg/util/csi/volume_snapshot.go
Update pkg/util/csi/volume_snapshot.go
Co-authored-by: Scott Seago <[email protected]>1 parent 2a9d991 commit cd84b89
File tree
5 files changed
+78
-1652
lines changed- pkg
- backup/actions/csi
- restore/actions/csi
5 files changed
+78
-1652
lines changed
0 commit comments