Allow new discovered error to show up
This commit is contained in:
@@ -360,15 +360,14 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
snapshotClone := snapshot.DeepCopy()
|
snapshotClone := snapshot.DeepCopy()
|
||||||
if snapshot.Status.Error == nil {
|
statusError := &storage.VolumeError{
|
||||||
statusError := &storage.VolumeError{
|
Time: metav1.Time{
|
||||||
Time: metav1.Time{
|
Time: time.Now(),
|
||||||
Time: time.Now(),
|
},
|
||||||
},
|
Message: message,
|
||||||
Message: message,
|
|
||||||
}
|
|
||||||
snapshotClone.Status.Error = statusError
|
|
||||||
}
|
}
|
||||||
|
snapshotClone.Status.Error = statusError
|
||||||
|
|
||||||
snapshotClone.Status.Ready = false
|
snapshotClone.Status.Ready = false
|
||||||
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).Update(snapshotClone)
|
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).Update(snapshotClone)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user