Merge pull request #933 from gy95/continue

remove orphan works failed cannot print successful logs
This commit is contained in:
karmada-bot 2021-11-08 16:19:22 +08:00 committed by GitHub
commit d0a7a9ac7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -160,6 +160,7 @@ func RemoveOrphanWorks(c client.Client, works []workv1alpha1.Work) error {
if err != nil {
klog.Errorf("Failed to delete orphan work %s/%s, err is %v", work.GetNamespace(), work.GetName(), err)
errs = append(errs, err)
continue
}
klog.Infof("Delete orphan work %s/%s successfully.", work.GetNamespace(), work.GetName())
}