Skip to content

Commit 1fedac6

Browse files
committed
fix: ensure resource status is patched before checking for updates on
1 parent 27b3c92 commit 1fedac6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/runtime/reconciler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,9 @@ func (r *resourceReconciler) Sync(
615615
return latest, err
616616
}
617617
r.rd.MarkAdopted(latest)
618+
// ensure status is patched before checking for updates
619+
r.patchResourceStatus(ctx, desired, latest)
620+
return latest, requeue.Needed(fmt.Errorf("requeuing to check for updates"))
618621
}
619622
if latest, err = r.updateResource(ctx, rm, resolved, latest); err != nil {
620623
return latest, err

0 commit comments

Comments
 (0)