parent
02ac1069fe
commit
c2192a75aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue