Skip to main content
CustomRun is at v1beta1 stability level.
A CustomRun represents a single execution of a Custom Task. Custom Tasks extend Tekton’s capabilities beyond the built-in Task type.

Resource Definition

string
required
tekton.dev/v1beta1
string
required
CustomRun
ObjectMeta
required
Standard Kubernetes metadata.
CustomRunSpec
required
Defines the desired state of the CustomRun.
CustomRunStatus
Defines the observed state of the CustomRun.

CustomRunSpec

TaskRef
Reference to the Custom Task definition. Mutually exclusive with customSpec.
EmbeddedCustomRunSpec
Inline Custom Task specification. Mutually exclusive with customRef.
[]Param
Parameters to pass to the Custom Task.See Parameter Types for details.
string
ServiceAccount to use for running the CustomRun.
[]WorkspaceBinding
Workspace bindings for the CustomRun.See Workspace Types for details.
Duration
Time after which the CustomRun times out.Format: Go duration string (e.g., “1h30m”)
integer
default:0
Number of times to retry on failure.
string
Used for cancelling a CustomRun.Values:
  • RunCancelled - Cancel the CustomRun
string
Human-readable status message for cancellation.

CustomRunStatus

[]Condition
Conditions describing the current state of the CustomRun.
Time
When the CustomRun started executing.
Time
When the CustomRun completed.
[]CustomRunResult
Results produced by the CustomRun.
[]CustomRunStatus
Status of previous retry attempts.

Custom Task Controllers

CustomRun is designed to be reconciled by custom task controllers. The controller is responsible for:
  1. Watching for CustomRuns that match its task type
  2. Executing the custom logic
  3. Updating the CustomRun status with results and conditions

Example