Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using Channel source #372

Closed
osela opened this issue Sep 3, 2018 · 1 comment
Closed

Error when using Channel source #372

osela opened this issue Sep 3, 2018 · 1 comment

Comments

@osela
Copy link

osela commented Sep 3, 2018

When trying to use a Channel source in my controller using the following code:

events := make(chan event.GenericEvent)
err = c.Watch(&source.Channel{Source: events}, &handler.EnqueueRequestForObject{})

I get the following error:
must call InjectStop on Channel before calling Start.

The reason is that the stop channel is set on controllerManager when Start is called, which is after a nil value was already injected as stop channel into the source.

@osela osela closed this as completed Sep 20, 2018
@osela
Copy link
Author

osela commented Sep 20, 2018

duplicate of kubernetes-sigs/controller-runtime#149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant