-
Notifications
You must be signed in to change notification settings - Fork 420
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
Idea: consider 0 as valid value for EventListener replicas #892
Comments
Hmm interesting idea...Are you manually creating a Knative Service using the EventListener sink image? I'm guessing we only need the EventListener because we fetch the EventListener to get the list of triggers to process...I wonder if there is a way we could refactor that code so that you could just pass it a list of triggers. also /cc @savitaashture for timeline on Knative EventListener implementation. |
Yes, exactly! I only did a quick test so far but the following service definition seems to work (almost a 1:1 copy of the deployment)
|
…dditional work, replicas=0 results in a broken setup. This change is intended as a workaround until a proper Knative EventListener implementation is available (see tektoncd#892)
This change is intended as a workaround until a proper Knative EventListener implementation is available (see tektoncd#892). Note: without additional work, replicas=0 results in a broken setup.
The required changes to enable this seems to be small. I opened a PR in case you consider this change :) |
I think with the Knative EL, this is no longer needed. Feel free to re-open if that's not the case. |
@dibyom: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi,
I´m trying to replace the deployments created by EventListener with Knative Services to enable scale to zero. I´m aware of https://github.com/tektoncd/community/blob/master/teps/0008-support-knative-service-for-triggers-eventlistener-pod.md and think this is a great long term solution. Until this is fully implemented: what are your thoughts of considering 0 as a valid value for the field replicas of EventListener? With this I could create EventListeners with replicas=0 and therefore prevent the pod from running all the time and instead manually create an additional Knative Service to cover the functionality instead.
Thanks, Fabian
The text was updated successfully, but these errors were encountered: