Allow new discovered error to show up
@@ -360,7 +360,6 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
return nil
}
snapshotClone := snapshot.DeepCopy()
- if snapshot.Status.Error == nil {
statusError := &storage.VolumeError{
Time: metav1.Time{
Time: time.Now(),
@@ -368,7 +367,7 @@ func (ctrl *csiSnapshotController) updateSnapshotErrorStatusWithEvent(snapshot *
Message: message,
}
snapshotClone.Status.Error = statusError
- }
+
snapshotClone.Status.Ready = false
newSnapshot, err := ctrl.clientset.VolumesnapshotV1alpha1().VolumeSnapshots(snapshotClone.Namespace).Update(snapshotClone)
if err != nil {
