-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Trigger workflows from webhook #2667
Comments
I'm curious how this would differ from Argo Events? |
This is mainly to support simple use-case like just user wants to trigger the workflow/workflows based on webhook invoke. Argo Event is a sophisticated application to support many usecases with multiple event sources, condition-based trigger, and complex event trigger logics. |
Triggering Workflows via the new REST API is already pretty simple, however it requires a Workflow body even when triggering a WorkflowTemplate. Is the idea here to support triggering a WorfklowTemplate by simply including parameters in the query? Ie |
The biggest difference for this would be the use of a token (like GITHUB_TOKEN) to escalate an anonymous user to one that is able to submit workflows as the system user. This makes it much easier and safer to use. |
Yup, that makes a lot of sense. |
In V2.7, Argo workflow has a |
Wow, this sounds pretty awesome! Would the result of this return the generated name of the new workflow? |
@whynowy has an example of how to do this, but the big challenge is that the payload of different systems varies. E.g. https://developer.github.com/webhooks/ Argo Events would be able to do this: https://argoproj.github.io/argo-events/tutorials/03-trigger-sources/#git |
@alexec - The link your gave is an example about how to trigger a git action not a github notification, check following links for a right example. https://github.com/argoproj/argo-events/blob/master/examples/event-sources/github.yaml |
@whynowy do you want to add your Google do to /docs? |
Please review the proposal: https://github.com/alexec/argo/blob/cloudevents/docs/events.md |
@nHurD, @deepk2u, @kmarquardsen, @juanchristensen, @kabilan6, @samath117, @shrimank, @maguowei, @oleg-borodai, @nikopen please can your review the proposal: https://github.com/alexec/argo/blob/cloudevents/docs/events.md |
Please remember to 👍 #3344 if you want to be able to resume suspended workflows. |
Available for testing in v2.11.0-rc1. |
Summary
Allow automated scripts to trigger workflows from a webhook.
Motivation
Simplify trigger or workflows.
Proposal
TBD
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: