Merge pull request #933 from gy95/continue
remove orphan works failed cannot print successful logs
This commit is contained in:
commit
d0a7a9ac7e
|
@ -160,6 +160,7 @@ func RemoveOrphanWorks(c client.Client, works []workv1alpha1.Work) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
klog.Errorf("Failed to delete orphan work %s/%s, err is %v", work.GetNamespace(), work.GetName(), err)
|
klog.Errorf("Failed to delete orphan work %s/%s, err is %v", work.GetNamespace(), work.GetName(), err)
|
||||||
errs = append(errs, err)
|
errs = append(errs, err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
klog.Infof("Delete orphan work %s/%s successfully.", work.GetNamespace(), work.GetName())
|
klog.Infof("Delete orphan work %s/%s successfully.", work.GetNamespace(), work.GetName())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue