run 'make -k all test' failed
This commit is contained in:
@@ -423,7 +423,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
|
|||||||
}
|
}
|
||||||
snapshotClone.Status.Error = statusError
|
snapshotClone.Status.Error = statusError
|
||||||
snapshotClone.Status.ReadyToUse = false
|
snapshotClone.Status.ReadyToUse = false
|
||||||
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
|
newSnapshot, err := ctrl.clientset.SnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.V(4).Infof("updating VolumeSnapshot[%s] error status failed %v", snapshotKey(snapshot), err)
|
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
|
|||||||
status.RestoreSize = resource.NewQuantity(size, resource.BinarySI)
|
status.RestoreSize = resource.NewQuantity(size, resource.BinarySI)
|
||||||
}
|
}
|
||||||
snapshotClone.Status = status
|
snapshotClone.Status = status
|
||||||
newSnapshotObj, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
|
newSnapshotObj, err := ctrl.clientset.SnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).UpdateStatus(snapshotClone)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, newControllerUpdateError(snapshotKey(snapshot), err.Error())
|
return nil, newControllerUpdateError(snapshotKey(snapshot), err.Error())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user