File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
423423 }
424424 snapshotClone .Status .Error = statusError
425425 snapshotClone .Status .ReadyToUse = false
426- newSnapshot , err := ctrl .clientset .VolumesnapshotV1alpha1 ().VolumeSnapshots (snapshotClone .Namespace ).UpdateStatus (snapshotClone )
426+ newSnapshot , err := ctrl .clientset .SnapshotV1alpha1 ().VolumeSnapshots (snapshotClone .Namespace ).UpdateStatus (snapshotClone )
427427
428428 if err != nil {
429429 klog .V (4 ).Infof ("updating VolumeSnapshot[%s] error status failed %v" , snapshotKey (snapshot ), err )
@@ -848,7 +848,7 @@ func (ctrl *csiSnapshotController) updateSnapshotStatus(snapshot *crdv1.VolumeSn
848848 status .RestoreSize = resource .NewQuantity (size , resource .BinarySI )
849849 }
850850 snapshotClone .Status = status
851- newSnapshotObj , err := ctrl .clientset .VolumesnapshotV1alpha1 ().VolumeSnapshots (snapshotClone .Namespace ).UpdateStatus (snapshotClone )
851+ newSnapshotObj , err := ctrl .clientset .SnapshotV1alpha1 ().VolumeSnapshots (snapshotClone .Namespace ).UpdateStatus (snapshotClone )
852852 if err != nil {
853853 return nil , newControllerUpdateError (snapshotKey (snapshot ), err .Error ())
854854 }
You can’t perform that action at this time.
0 commit comments