You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library is really great. Thanks for all what you guys are doing.
I have a question.
My case is that I don't want to watch a kind type. I just want to watch a channel (with ticks, for example).
Currently, it looks like we can't do it without a workaround.
So I had to add For(&v1.ResourceQuota{}, predicates.IgnoreAllEvents()) (I chose ResourceQuota because usually no one uses it, to ensure that there will be small count of events with this kind)
If I remove For (or replace it with Watches, I got an error that controller can't be created:
2022-11-21T23:06:30.552+0300 ERROR setup unable to create controller {"controllers": "Garbage", "error": "must provide an object for reconciliation"}
main.main
It would be cool if we could run controller without having to check 'fake' kind resource type.
Thanks.
The text was updated successfully, but these errors were encountered:
I agree requiring For is an annoyance and sometimes undesired. Removing that requirement if len(append(blder.ownsInput, blder.watchesInput...) > 0 sounds good to me.
I agree requiring For is an annoyance and sometimes undesired. Removing that requirement if len(append(blder.ownsInput, blder.watchesInput...) > 0 sounds good to me.
Hello @alvaroaleman , it seems that this has been modified in 0.14. That's great.
But will this restriction be modified in the previous version? Due to the dependency version of golang, we are limited to using 0.11, so we cannot create the controller without calling the For() func.
Hello!
This library is really great. Thanks for all what you guys are doing.
I have a question.
My case is that I don't want to watch a
kind
type. I just want to watch a channel (with ticks, for example).Currently, it looks like we can't do it without a workaround.
Working code:
So I had to add
For(&v1.ResourceQuota{}, predicates.IgnoreAllEvents())
(I choseResourceQuota
because usually no one uses it, to ensure that there will be small count of events with this kind)If I remove For (or replace it with
Watches
, I got an error that controller can't be created:It would be cool if we could run controller without having to check 'fake' kind resource type.
Thanks.
The text was updated successfully, but these errors were encountered: