Skip to content

Commit 1b94c3b

Browse files
committed
Fix conditional
1 parent 062432a commit 1b94c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (c *Controller[T]) Register(ctx context.Context, m manager.Manager) error {
4949
}
5050

5151
func (c *Controller[T]) Reconcile(ctx context.Context, event *v1.Event) (reconcile.Result, error) {
52-
if event.InvolvedObject.Kind != c.gvk.Kind && event.InvolvedObject.APIVersion != c.gvk.GroupVersion().String() {
52+
if event.InvolvedObject.Kind != c.gvk.Kind || event.InvolvedObject.APIVersion != c.gvk.GroupVersion().String() {
5353
return reconcile.Result{}, nil
5454
}
5555

0 commit comments

Comments
 (0)