tektoncd / cli

A CLI for interacting with Tekton!
Apache License 2.0
427 stars 246 forks source link

Create taskrun/pipelinerun from oci bundle #1474

Open vdemeester opened 2 years ago

vdemeester commented 2 years ago

Feature request

It should be possible to create a TaskRun (using tkn task start) from a oci bundle. Today, we can create a TaskRun from an in-cluster Task definition. If oci bundles are enabled on a Pipeline instance, it's possible to create a TaskRun that uses the oci bundle image reference as Task definition reference. It should be possible to do that from the cli directly

The same should be possible for PipelineRun as well

Use case

Use oci bundle from the cli 👼🏼

UI Example

$ tkn task start oci://quay.io/vdemeest/my-task:0.1 -p foo=bar …
tekton-robot commented 2 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale with a justification. Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with /close with a justification. If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

vdemeester commented 2 years ago

/remove-lifecycle stale /area roadmap /lifecycle frozen

digglife commented 2 years ago

There could be multiple layers(tasks) in one bundle image, do we need to cover that? Or we can assume there is only one task?