-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Support Step life-cycle hooks in a "listener" Sidecar #2072
Comments
Relates to #1460 I think. |
/kind feature |
Somewhat related to #1740 Perhaps we can emit CloudEvents that the entrypoint can send to some user defined sink? |
This does sound to me like what "notifications" are about, what do you think @skaegi ? To summarize, open issues that might solve this:
|
Yes. I guess what I was trying to figure out is if there was some pre-existing approach in Kubernetes that we could use to "act" on the events. |
So for a real-world example, we (MLB) run a sidecar container that leverages kubernetes-client to listen in on the pod (pipeline) in question and reports back statuses into Github. Definitely has it's quirks but seems to be working well thus far. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: 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. |
/reopen |
@wlynch: Reopened 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. |
Issues go stale after 90d of inactivity. /lifecycle stale Send feedback to tektoncd/plumbing. |
Stale issues rot after 30d of inactivity. /lifecycle rotten Send feedback to tektoncd/plumbing. |
Rotten issues close after 30d of inactivity. /close Send feedback to tektoncd/plumbing. |
@tekton-robot: 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. |
A frequent request we are hearing from users, is the ability to watch and react as the Steps of a Task proceed without having to necessarily hard-code that logic into Steps. For example firing a Slack message when a particular Step completes or updating a PR as various tests complete.
I wonder if we might re-use a mechanism similar to https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ to notify a "listener" sidecar. Once notified the sidecar shares the
/workspace
so might run further interesting logic. This might be a way to peel another useful piece of the PipelineResource capability away.The text was updated successfully, but these errors were encountered: