Just wondering if there's a way to start a Tekton pipeline via the Kubernetes API. I know we can use Triggers
or the tkn
cli. But for my use-case, the API would be a better option. Is there a way to do that?
I'm using OpenShift, but can't find any reference in the API documentation.
Yes, this is possible. You start a run of a pipeline by creating a PipelineRun custom resource.
If you want to do it with Go code, you can use the generated client, in a similar way as for other Kubernetes custom resources.