Closed ricardozanini closed 2 years ago
I added a comment to your PR.
Fixed by adding the NamespaceLister
attribute to the controller constructor. We can update the guide to reflect this change. From the GitHub Source: https://github.com/knative-sandbox/eventing-github/blob/v0.27.0/pkg/reconciler/binding/controller.go#L60-L82
This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen
. Mark the issue as
fresh by adding the comment /remove-lifecycle stale
.
Hi all!
I've been working on a small refactoring on Kogito Eventing to have a source capable to bind to any "Podspecable" and sink the events to any Sink.
The Sink part is already done, but I'm having a hard time implementing the "subject" binding. I've followed this guide, but I'm getting weird exceptions on my controller.
I might be implementing it wrong, so I came for advice. Could also be a bug, I'm not sure if we have this use case in other sources.
Expected Behavior
The "subject" be bound to the source.
Actual Behavior
If the subject is defined without the namespace, the controller can't find it. I'm assuming the controller is looking for the subject in the default namespace instead to look at the same namespace the source CR is created. If I define the namespace, this null reference is raised:
Steps to Reproduce the Problem
Additional Info
The necessary information to reproduce the problem is in the linked gist. Please, reach out to me if you need more details.
Many thanks!
/kind bug /area API