add snapshot size to data mover CRs

Signed-off-by: Lyndon-Li <lyonghui@vmware.com>
This commit is contained in:
Lyndon-Li
2025-10-21 14:13:59 +08:00
parent 9b02402631
commit 166f50d776
21 changed files with 110 additions and 24 deletions

View File

@@ -180,3 +180,15 @@ func (d *DataUploadBuilder) Message(msg string) *DataUploadBuilder {
d.object.Status.Message = msg
return d
}
// SnapshotSize sets the DataUpload's SnapshotSize.
func (d *DataUploadBuilder) SnapshotSize(size int64) *DataUploadBuilder {
d.object.Status.SnapshotSize = size
return d
}
// TotalBytes sets the DataUpload's TotalBytes.
func (d *DataUploadBuilder) TotalBytes(size int64) *DataUploadBuilder {
d.object.Status.SnapshotSize = size
return d
}