-
Notifications
You must be signed in to change notification settings - Fork 116
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
leverage tekton SCM trigger support #51
Comments
We used the tekton triggers in our source-to-image PoC. It works well. for each webhook triggers, there is a trigger event listener in the cluster that keep monitor the event from each webhook then trigger the Tekton trigger template to do the source-to-image build task. If you interest, I can show your our PoC demo and what we did by using it. |
Jotting down some notes/updates from some of my recent upstream Tekton Trigger WG activities These notes should be consider complimentary or building upon to @zhangtbj 's comments here back in March, as his description there lines up with my improved understanding/interpretation since the initial description in this issue of what is available with tekton triggers.
you can either inline those trigger templates def, or use a reference approach, where the event listener sink then reads it it (see sink.go's processTrigger method, which calls ExecuteInterceptor followed by ResolveTrigger ... fwiw the trigger code looks at the in line fields first, and if it sees nothing there, tries the ref)
I think we'll want to consider the pros/cons cluster scope vs. per namespace EL's as we go down this path |
Moving this to the post GA backlog. Triggers are an important feature, but not absolutely required. |
I was exploring the possibility of creating the following resources when the user expresses the intent to use webhooks with GitHub(for example):
This experiment didn't succeed because the admission webhook doesn't let Potential next steps:
Questions that need to be answered in future:
|
Yes a subject that has come up before in the upstream triggers WG. Main reason it has not happened yet is security concerns, as you noted below.
@imjasonh and I had a recent slack discussion on this as well. I would sign off on the upstream proposal if
|
The impersonation piece I placed into triggers could also help facilitate expanding the list of objects triggers can create. |
UPDATE: so @sbose78 's #912 is a take at SCM based triggering This issue was originally just SCM based triggering For image based triggering, upstream would either start or build off of https://github.com/shipwright-io/community/blob/main/ships/0020-shipwright-image-api.md For openshift imagestreams, feels very much downstream only at the moment, unless a shipwright image api implementation sheds further light on that |
today the https://github.com/tektoncd/triggers project provides github/gitlab styled webhook trigger support for creating tekton API object to trigger their CI/CD pipelines.
This is akin to the webhook support in openshift build v1
In theory build v2 could deploy tekton trigger event sinks in conjunction with their controller and define event triggers that will run the same underlying tekton objects which buildv2 maps too.
The text was updated successfully, but these errors were encountered: