tektoncd / triggers

Event triggering with Tekton!
Apache License 2.0
546 stars 416 forks source link

Enable Triggers to create custom non-Tekton resources #1696

Closed GijsvanDulmen closed 4 months ago

GijsvanDulmen commented 5 months ago

Feature request

It would be great if it was configurable for Tekton Triggers to create custom resources instead of only Tekton resources. I understand it's not useful for everybody and maybe shouldn't be the default, but in a lot of use cases it does improves the plugin nature of Tekton Triggers.

Use case

In our case we wanted to use K8qu to create a "Queued" PipelineRun. This involves creating a custom QueueJob resource which creates the PipelineRun. But in other use cases I can imagine you sometimes also want to create K8s Jobs to trigger based on something sent into the EventListener.

savitaashture commented 5 months ago

WG discussion:

During call we discussed that we can enable this feature and creation of resources can be enabled based on the SA permissions

GijsvanDulmen commented 5 months ago

@savitaashture That sounds like a really nice addition to triggers! Is there any help needed for implementing it?

savitaashture commented 5 months ago

Hi @GijsvanDulmen Definitely would you like to contribute ?

GijsvanDulmen commented 5 months ago

Yes, I will go and see if I can create PR for it.