This page provides a detailed reference for the WorkflowTemplate, WorkflowRun, and WorkflowRunTemplate Custom Resource Definition (CRD) schemas.

WorkflowTemplate

A WorkflowTemplate is a reusable blueprint for a workflow.

WorkflowTemplateSpec

FieldTypeDescription
versionstringThe version of the workflow template schema.
namestringA human-readable name for the workflow template.
parameterGroups[]ParameterGroupA list of parameter groups that can be overridden at runtime.
jobsmap[string]JobA map of job definitions that constitute the workflow.

Parameter

FieldTypeDescription
namestringThe name of the parameter.
descriptionstringA human-readable description of the parameter.
typeParameterTypeThe data type of the parameter (e.g., string, secretstore, generator[fake]).
requiredbooleanSpecifies whether the parameter is mandatory.
defaultstringThe default value for the parameter if not provided.
allowMultiplebooleanAllows multiple values for the parameter, treating it as an array.
resourceConstraintsResourceConstraintsConstraints for resource selection (e.g., for secretstore type).
validationParameterValidationValidation rules, such as minItems and maxItems for arrays.

WorkflowRun

A WorkflowRun is an instance of a WorkflowTemplate that executes the defined jobs.

WorkflowRunSpec

FieldTypeDescription
templateRefobjectA reference to the WorkflowTemplate to execute. Must contain a name field.
argumentsobjectA map of key-value pairs for the template parameters. Keys must match parameter names.

WorkflowRunStatus

FieldTypeDescription
workflowRefobjectA reference to the underlying Workflow resource created by the run.
conditions[]metav1.ConditionThe latest observations of the WorkflowRun’s state.
phasestringThe current phase of the run (Pending, Running, Succeeded, Failed).
startTimemetav1.TimeThe time when the workflow run started.
completionTimemetav1.TimeThe time when the workflow run completed.

WorkflowRunTemplate

A WorkflowRunTemplate automates the creation of WorkflowRun resources.

WorkflowRunTemplateSpec

FieldTypeDescription
runSpecWorkflowRunSpecThe specification for the WorkflowRun to be created.
runPolicyRunPolicyThe policy that determines when to create a new WorkflowRun.
revisionHistoryLimitintThe number of WorkflowRun resources to retain for history. Defaults to 3.

RunPolicy

FieldTypeDescription
onceobjectCreates a WorkflowRun only once. This is an empty object {}.
scheduledobjectCreates WorkflowRun resources on a schedule. Contains a cron field with a cron expression.
onChangeobjectCreates a WorkflowRun whenever the WorkflowRunTemplate spec changes. This is an empty object {}.

WorkflowRunTemplateStatus

FieldTypeDescription
lastRunTimemetav1.TimeThe timestamp of the last WorkflowRun execution.
runStatuses[]NamedWorkflowRunStatusA list of statuses for recent WorkflowRun resources.
conditions[]metav1.ConditionThe latest observations of the WorkflowRunTemplate’s state.