@@ -154,7 +154,7 @@ func (ctrl *csiSnapshotController) syncContent(content *crdv1.VolumeSnapshotCont
154154func  (ctrl  * csiSnapshotController ) syncSnapshot (snapshot  * crdv1.VolumeSnapshot ) error  {
155155	glog .V (5 ).Infof ("synchonizing VolumeSnapshot[%s]: %s" , snapshotKey (snapshot ), getSnapshotStatusForLogging (snapshot ))
156156
157- 	if  ! snapshot .Status .Ready  {
157+ 	if  ! snapshot .Status .ReadyToUse  {
158158		return  ctrl .syncUnreadySnapshot (snapshot )
159159	} else  {
160160		return  ctrl .syncReadySnapshot (snapshot )
@@ -379,7 +379,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
379379	}
380380	snapshotClone .Status .Error  =  statusError 
381381
382- 	snapshotClone .Status .Ready  =  false 
382+ 	snapshotClone .Status .ReadyToUse  =  false 
383383	newSnapshot , err  :=  ctrl .clientset .VolumesnapshotV1alpha1 ().VolumeSnapshots (snapshotClone .Namespace ).Update (snapshotClone )
384384	if  err  !=  nil  {
385385		glog .V (4 ).Infof ("updating VolumeSnapshot[%s] error status failed %v" , snapshotKey (snapshot ), err )
@@ -399,7 +399,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
399399
400400// Stateless functions 
401401func  getSnapshotStatusForLogging (snapshot  * crdv1.VolumeSnapshot ) string  {
402- 	return  fmt .Sprintf ("bound to: %q, Completed: %v" , snapshot .Spec .SnapshotContentName , snapshot .Status .Ready )
402+ 	return  fmt .Sprintf ("bound to: %q, Completed: %v" , snapshot .Spec .SnapshotContentName , snapshot .Status .ReadyToUse )
403403}
404404
405405func  IsSnapshotBound (snapshot  * crdv1.VolumeSnapshot , content  * crdv1.VolumeSnapshotContent ) bool  {
@@ -721,7 +721,7 @@ func (ctrl *csiSnapshotController) updateSnapshotStatus(snapshot *crdv1.VolumeSn
721721	snapshotClone  :=  snapshot .DeepCopy ()
722722	if  readyToUse  {
723723		if  bound  {
724- 			status .Ready  =  true 
724+ 			status .ReadyToUse  =  true 
725725			// Remove the error if checking snapshot is already bound and ready 
726726			status .Error  =  nil 
727727			change  =  true 
0 commit comments