From 61c67ae2368ad7e19f93554e6c0c1503d5f66d8f Mon Sep 17 00:00:00 2001 From: Xing Yang Date: Tue, 21 Aug 2018 19:37:13 -0700 Subject: [PATCH] Change Size to RestoreSize in snapshot controller --- pkg/controller/snapshot_controller.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/snapshot_controller.go b/pkg/controller/snapshot_controller.go index 17c3f37d..9399d206 100644 --- a/pkg/controller/snapshot_controller.go +++ b/pkg/controller/snapshot_controller.go @@ -512,7 +512,7 @@ func (ctrl *csiSnapshotController) createSnapshotOperation(snapshot *crdv1.Volum Driver: driverName, SnapshotHandle: snapshotID, CreationTime: ×tamp, - Size: resource.NewQuantity(size, resource.BinarySI), + RestoreSize: resource.NewQuantity(size, resource.BinarySI), }, }, VolumeSnapshotClassName: class.Name, @@ -668,7 +668,7 @@ func (ctrl *csiSnapshotController) updateSnapshotStatus(snapshot *crdv1.VolumeSn } if change { if size != nil { - status.Size = size + status.RestoreSize = size } snapshotClone.Status = status newSnapshotObj, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).Update(snapshotClone)