mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-13 11:34:54 +00:00
record source size to volume info
Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
@@ -181,6 +181,9 @@ type SnapshotDataMovementInfo struct {
|
||||
// incremental and must stay distinguishable from "unknown".
|
||||
IncrementalSize *int64 `json:"incrementalSize,omitempty"`
|
||||
|
||||
// The size of source volume, for backup only
|
||||
SourceSize int64 `json:"sourceSize,omitempty"`
|
||||
|
||||
// The DataUpload's Status.Phase value
|
||||
Phase velerov2alpha1.DataUploadPhase
|
||||
}
|
||||
|
||||
@@ -1325,6 +1325,7 @@ func updateVolumeInfos(
|
||||
volumeInfos[index].SnapshotDataMovementInfo.RetainedSnapshot = dataUpload.Spec.CSISnapshot.VolumeSnapshot
|
||||
volumeInfos[index].SnapshotDataMovementInfo.Size = dataUpload.Status.Progress.TotalBytes
|
||||
volumeInfos[index].SnapshotDataMovementInfo.IncrementalSize = dataUpload.Status.IncrementalBytes
|
||||
volumeInfos[index].SnapshotDataMovementInfo.SourceSize = dataUpload.Status.SourceSize
|
||||
volumeInfos[index].SnapshotDataMovementInfo.Phase = dataUpload.Status.Phase
|
||||
|
||||
if dataUpload.Status.Phase == velerov2alpha1.DataUploadPhaseCompleted {
|
||||
|
||||
Reference in New Issue
Block a user