numaproj / numaplane

Control Plane for Numaproj
Apache License 2.0
4 stars 3 forks source link

fix: watch with EnqueueRequestForOwner to avoid multiple reconcile calls #60

Closed afugazzotto closed 1 week ago

afugazzotto commented 1 week ago

Fixes #5

Modifications

Using events handler EnqueueRequestForOwner with the controller watch when watching for events on the child resources (Pipeline and ISBService). This reduces the number of Reconcile calls to only handle changes related to the owned resource.

Verification

Manually tested changes and observed that the number of Reconcile calls is reduced for the same operations.