diff --git a/internal/pkg/controller/controller.go b/internal/pkg/controller/controller.go index 854b6ea1..b2d97a66 100644 --- a/internal/pkg/controller/controller.go +++ b/internal/pkg/controller/controller.go @@ -73,10 +73,12 @@ func (c *Controller) resourceInIgnoredNamespace(raw interface{}) bool { // Update function to add an old object and a new object to the queue in case of updating a resource func (c *Controller) Update(old interface{}, new interface{}) { - c.queue.Add(handler.ResourceUpdatedHandler{ - Resource: new, - OldResource: old, - }) + if !c.resourceInIgnoredNamespace(new) { + c.queue.Add(handler.ResourceUpdatedHandler{ + Resource: new, + OldResource: old, + }) + } } // Delete function to add an object to the queue in case of deleting a resource