diff --git a/pkg/cmd/apply/apply_set_last_applied.go b/pkg/cmd/apply/apply_set_last_applied.go index fd220b4c0..6dfdd7c2b 100644 --- a/pkg/cmd/apply/apply_set_last_applied.go +++ b/pkg/cmd/apply/apply_set_last_applied.go @@ -206,7 +206,7 @@ func (o *SetLastAppliedOptions) RunSetLastApplied() error { return err } helper := resource.NewHelper(client, mapping) - finalObj, err = helper.Patch(o.namespace, info.Name, patch.PatchType, patch.Patch, nil) + finalObj, err = helper.Patch(info.Namespace, info.Name, patch.PatchType, patch.Patch, nil) if err != nil { return err }