The existing doc only explains how to cancel a TaskRun or PipelineRun but not how to remove a task or replay it.
So I propose to enhance the doc and to explain how to run/stop or cancel a taskRun/PipelineRun like also how to replay it
According to @hrishin, this is possible to replay a TaskRun using a generatedName but this feature is not documented at all (I think so)
@cmouillard, thanks for the issue. The Run CRD (pipelinerun and taskrun) are not replayable, they are, in a sense, immutable. The only mutation you can do afterwards is cancellation.
This is a bit related to this issue : https://github.com/tektoncd/pipeline/issues/685.
GenerateName is a kubernetes feature that allows you to apply your object (yaml, ..) with only a prefix for the name, letting the controller(s) generate a unique name with this prefix. This is something that should work with any CRDs in k8s. Documenting its usage in tekton pipeline is something we need to do indeed 😇
I'm closing this as a duplicate of #685 (also updated the title of #685 to make it a bit more clear that these are the same).
Re-open if I've missed something!
Most helpful comment
@cmouillard, thanks for the issue. The Run CRD (pipelinerun and taskrun) are not replayable, they are, in a sense, immutable. The only mutation you can do afterwards is cancellation.
This is a bit related to this issue : https://github.com/tektoncd/pipeline/issues/685.
GenerateName is a kubernetes feature that allows you to apply your object (yaml, ..) with only a prefix for the name, letting the controller(s) generate a unique name with this prefix. This is something that should work with any CRDs in k8s. Documenting its usage in tekton pipeline is something we need to do indeed 😇