<p>I have written a k8s controller with kubebuilder which reconciles my CustomResource object (MyResource).</p>
<p>During update, controller-runtime gives me an error 'not found' even though my resource exists on the cluster.</p>
<pre><code>func (r *MyResourceReconciler) updateStatus(ctx context.Context, myResource *myResourcev1.MyResource, neoStatus *myResourcev1.MyResourceStatus) error {
    if !reflect.DeepEqual(&amp;myResource.Status, neoStatus) {
        myResource.Status = *neoStatus
        err := r.Status().Update(ctx, myResource)
        return err

    }
    return nil
}
</code></pre>
<p>Can someone please help me troubleshoot this error? I'm stuck because I can do a GET on the resource using kubectl on the cluster &amp; yet controller-runtime says 'not found'.</p>

pep8
<p>I was able to resolve this issue myself using:</p>
<p><code>r.Update(ctx, myResource)</code> instead of <code>r.Status().Update(ctx, myResource)</code></p>
