diff --git a/pkg/restore/restore.go b/pkg/restore/restore.go index 647e2aa5a..35c1c20ea 100644 --- a/pkg/restore/restore.go +++ b/pkg/restore/restore.go @@ -1648,7 +1648,7 @@ func (ctx *restoreContext) restoreItem(obj *unstructured.Unstructured, groupReso return warnings, errs, itemExists } - // detemind whether to restore status according to original GR + // determine whether to restore status according to original GR shouldRestoreStatus := ctx.resourceStatusIncludesExcludes != nil && ctx.resourceStatusIncludesExcludes.ShouldInclude(groupResource.String()) if shouldRestoreStatus && statusFieldErr != nil { err := fmt.Errorf("could not get status to be restored %s: %v", kube.NamespaceAndName(obj), statusFieldErr)