From d85ed612cb3df7dfea101db0638223275f8e4ba4 Mon Sep 17 00:00:00 2001 From: Rafael Leal Date: Thu, 12 May 2022 11:55:50 -0300 Subject: [PATCH] Cleanup Signed-off-by: Rafael Leal --- pkg/restore/restore.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/restore/restore.go b/pkg/restore/restore.go index 0c3f422a8..8fdc014da 100644 --- a/pkg/restore/restore.go +++ b/pkg/restore/restore.go @@ -1137,14 +1137,6 @@ func (ctx *restoreContext) restoreItem(obj *unstructured.Unstructured, groupReso shouldRestoreStatus := ctx.resourceStatusIncludesExcludes.ShouldInclude(groupResource.String()) ctx.log.Infof("restore status includes excludes: %+v", ctx.resourceStatusIncludesExcludes) - // Clear out status. - if !shouldRestoreStatus { - ctx.log.Infof("Resetting status for obj %s/%s", obj.GetKind(), obj.GetName()) - if obj, err = resetStatus(obj); err != nil { - errs.Add(namespace, err) - return warnings, errs - } - } for _, action := range ctx.getApplicableActions(groupResource, namespace) { if !action.Selector.Matches(labels.Set(obj.GetLabels())) {