Skip to content

Commit 226bf39

Browse files
committed
Removed the source queue and pulled object from the channel
1 parent 0459e02 commit 226bf39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

events/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func NewController[T client.Object](ctx context.Context, client client.Client, c
3838
kubeClient: client,
3939
EventCount: eventTotalMetric(strings.ToLower(gvk.Kind)),
4040
EventWatch: lo.Must(kubernetesInterface.CoreV1().Events("").Watch(ctx, metav1.ListOptions{
41+
// Only reconcile on the object kind we care about
4142
FieldSelector: fmt.Sprintf("involvedObject.kind=%s,involvedObject.apiVersion=%s", gvk.Kind, gvk.GroupVersion().String()),
4243
})),
4344
}

0 commit comments

Comments
 (0)