Configure a TaskRun
mainA TaskRun is the resource used to execute a Task. It supports several configuration fields to control execution behavior.
Required Fields
apiVersion: The API version (e.g.,tekton.dev/v1beta1ortekton.dev/v1).kind: Must beTaskRun.metadata: Unique identifier for theTaskRun(e.g.,name).spec: The configuration block containing:taskRefortaskSpec: Defines whichTaskto execute.
Optional Fields
serviceAccountName: Custom credentials for execution.params: Execution parameters for theTask.timeout: Duration before theTaskRunfails (GoParseDurationformat).podTemplate: APodtemplate to customize the execution environment.workspaces: Physical volumes to map toTaskworkspaces.debug: Breakpoints and debugging configuration.stepSpecs/sidecarSpecs: Overrides for specific namedSteps orSidecars.managedBy: The controller responsible for the lifecycle.