Digging into TaskRuns
Task runs are the actual executions of the tasks themselves. Tasks are essentially just a template to build task runs. When you use the tkn
CLI tool to start a task, it uses that template, binds the parameters and the options, and then starts the execution.
The visualization tools, such as the VS Code extension or Tekton Dashboard, can help get some insights about the task runs, but sometimes, you might need more information.
To see the content of a task run, start by creating one for the groceries
Task that you created earlier:
$ tkn task start groceries --showlog ? Value for param `grocery-items` of type `array`? milk,bread,coffee TaskRun started: groceries-run-k24zp Waiting for logs to be available... [grocery-list] Grocery List [grocery-list] => milk [grocery-list] => bread [grocery-list] => coffee
Notice the line that starts with TaskRun started
. It should show the name of the task run that was just started. This is a random...