Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2023-37264: v1beta1 package - github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1 - Go Packages

Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 0.35.0, pipelines do not validate child UIDs, which means that a user that has access to create TaskRuns can create their own Tasks that the Pipelines controller will accept as the child Task. While the software stores and validates the PipelineRun’s (api version, kind, name, uid) in the child Run’s OwnerReference, it only store (api version, kind, name) in the ChildStatusReference. This means that if a client had access to create TaskRuns on a cluster, they could create a child TaskRun for a pipeline with the same name + owner reference, and the Pipeline controller picks it up as if it was the original TaskRun. This is problematic since it can let users modify the config of Pipelines at runtime, which violates SLSA L2 Service Generated / Non-falsifiable requirements. This issue can be used to trick the Pipeline controller into associating unrelated Runs to the Pipeline, feeding its data through the rest of the Pipeline. This requires access to create TaskRuns, so impact may vary depending on one Tekton setup. If users already have unrestricted access to create any Task/PipelineRun, this does not grant any additional capabilities. As of time of publication, there are no known patches for this issue.

CVE
#mac#js#git#kubernetes

Package v1beta1 contains API Schema definitions for the pipeline v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/tektoncd/pipeline/pkg/apis/pipeline +k8s:defaulter-gen=TypeMeta +groupName=tekton.dev

  • Constants
  • Variables
  • func ArrayReference(a string) string
  • func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
  • func GetVarSubstitutionExpressionsForParam(param Param) ([]string, bool)
  • func GetVarSubstitutionExpressionsForPipelineResult(result PipelineResult) ([]string, bool)
  • func Kind(kind string) schema.GroupKind
  • func LooksLikeContainsResultRefs(expressions []string) bool
  • func ParseResultName(resultName string) (string, string)
  • func Resource(resource string) schema.GroupResource
  • func ResultsArrayReference(a string) string
  • func ValidateParameterTypes(ctx context.Context, params []ParamSpec) (errs *apis.FieldError)
  • func ValidateParameterVariables(ctx context.Context, steps []Step, params ParamSpecs) *apis.FieldError
  • func ValidateParameters(ctx context.Context, params Params) (errs *apis.FieldError)
  • func ValidatePipelineParameterVariables(ctx context.Context, tasks []PipelineTask, params ParamSpecs) (errs *apis.FieldError)
  • func ValidatePipelineTasks(ctx context.Context, tasks []PipelineTask, finalTasks []PipelineTask) *apis.FieldError
  • func ValidateUsageOfDeclaredParameters(ctx context.Context, steps []Step, params ParamSpecs) *apis.FieldError
  • func ValidateVolumes(volumes []corev1.Volume) (errs *apis.FieldError)
  • func ValidateWorkspaceBindings(ctx context.Context, wb []WorkspaceBinding) (errs *apis.FieldError)
  • type ArrayOrStringdeprecated
  • type ChildStatusReference
    • func (in *ChildStatusReference) DeepCopy() *ChildStatusReference
    • func (in *ChildStatusReference) DeepCopyInto(out *ChildStatusReference)
  • type CloudEventCondition
  • type CloudEventDelivery
    • func (in *CloudEventDelivery) DeepCopy() *CloudEventDelivery
    • func (in *CloudEventDelivery) DeepCopyInto(out *CloudEventDelivery)
  • type CloudEventDeliveryState
    • func (in *CloudEventDeliveryState) DeepCopy() *CloudEventDeliveryState
    • func (in *CloudEventDeliveryState) DeepCopyInto(out *CloudEventDeliveryState)
  • type ClusterTaskdeprecated
    • func (ct *ClusterTask) ConvertFrom(ctx context.Context, source apis.Convertible) error
    • func (ct *ClusterTask) ConvertTo(ctx context.Context, sink apis.Convertible) error
    • func (t *ClusterTask) Copy() TaskObject
    • func (in *ClusterTask) DeepCopy() *ClusterTask
    • func (in *ClusterTask) DeepCopyInto(out *ClusterTask)
    • func (in *ClusterTask) DeepCopyObject() runtime.Object
    • func (*ClusterTask) GetGroupVersionKind() schema.GroupVersionKind
    • func (t *ClusterTask) SetDefaults(ctx context.Context)
    • func (t *ClusterTask) TaskMetadata() metav1.ObjectMeta
    • func (t *ClusterTask) TaskSpec() TaskSpec
    • func (t *ClusterTask) Validate(ctx context.Context) *apis.FieldError
  • type ClusterTaskList
    • func (in *ClusterTaskList) DeepCopy() *ClusterTaskList
    • func (in *ClusterTaskList) DeepCopyInto(out *ClusterTaskList)
    • func (in *ClusterTaskList) DeepCopyObject() runtime.Object
  • type Combination
    • func (in Combination) DeepCopy() Combination
    • func (in Combination) DeepCopyInto(out *Combination)
  • type Combinations
    • func (in Combinations) DeepCopy() Combinations
    • func (in Combinations) DeepCopyInto(out *Combinations)
  • type ConfigSource
    • func (in *ConfigSource) DeepCopy() *ConfigSource
    • func (in *ConfigSource) DeepCopyInto(out *ConfigSource)
  • type CustomRun
    • func (in *CustomRun) DeepCopy() *CustomRun
    • func (in *CustomRun) DeepCopyInto(out *CustomRun)
    • func (in *CustomRun) DeepCopyObject() runtime.Object
    • func (r *CustomRun) GetConditionSet() apis.ConditionSet
    • func (r *CustomRun) GetCustomRunKey() string
    • func (*CustomRun) GetGroupVersionKind() schema.GroupVersionKind
    • func (r *CustomRun) GetRetryCount() int
    • func (r *CustomRun) GetStatus() *duckv1.Status
    • func (r *CustomRun) GetStatusCondition() apis.ConditionAccessor
    • func (r *CustomRun) GetTimeout() time.Duration
    • func (r *CustomRun) HasPipelineRunOwnerReference() bool
    • func (r *CustomRun) HasStarted() bool
    • func (r *CustomRun) HasTimedOut(c clock.PassiveClock) bool
    • func (r *CustomRun) IsCancelled() bool
    • func (r *CustomRun) IsDone() bool
    • func (r *CustomRun) IsSuccessful() bool
    • func (r *CustomRun) SetDefaults(ctx context.Context)
    • func (r *CustomRun) SupportedVerbs() []admissionregistrationv1.OperationType
    • func (r *CustomRun) Validate(ctx context.Context) *apis.FieldError
  • type CustomRunList
    • func (in *CustomRunList) DeepCopy() *CustomRunList
    • func (in *CustomRunList) DeepCopyInto(out *CustomRunList)
    • func (in *CustomRunList) DeepCopyObject() runtime.Object
  • type CustomRunReason
    • func (t CustomRunReason) String() string
  • type CustomRunResult
  • type CustomRunSpec
    • func (in *CustomRunSpec) DeepCopy() *CustomRunSpec
    • func (in *CustomRunSpec) DeepCopyInto(out *CustomRunSpec)
    • func (rs CustomRunSpec) GetParam(name string) *Param
    • func (rs *CustomRunSpec) SetDefaults(ctx context.Context)
    • func (rs *CustomRunSpec) Validate(ctx context.Context) *apis.FieldError
  • type CustomRunSpecStatus
  • type CustomRunSpecStatusMessage
  • type CustomRunStatus
  • type CustomRunStatusFields
  • type EmbeddedCustomRunSpec
    • func (in *EmbeddedCustomRunSpec) DeepCopy() *EmbeddedCustomRunSpec
    • func (in *EmbeddedCustomRunSpec) DeepCopyInto(out *EmbeddedCustomRunSpec)
  • type EmbeddedTask
    • func (in *EmbeddedTask) DeepCopy() *EmbeddedTask
    • func (in *EmbeddedTask) DeepCopyInto(out *EmbeddedTask)
    • func (et *EmbeddedTask) IsCustomTask() bool
  • type IncludeParams
    • func (in *IncludeParams) DeepCopy() *IncludeParams
    • func (in *IncludeParams) DeepCopyInto(out *IncludeParams)
  • type IncludeParamsList
    • func (in IncludeParamsList) DeepCopy() IncludeParamsList
    • func (in IncludeParamsList) DeepCopyInto(out *IncludeParamsList)
  • type InternalTaskModifierdeprecated
    • func (in *InternalTaskModifier) DeepCopy() *InternalTaskModifier
    • func (in *InternalTaskModifier) DeepCopyInto(out *InternalTaskModifier)
  • type Matrix
    • func (m *Matrix) CountCombinations() int
    • func (in *Matrix) DeepCopy() *Matrix
    • func (in *Matrix) DeepCopyInto(out *Matrix)
    • func (m *Matrix) FanOut() []Params
    • func (m *Matrix) GetAllParams() Params
    • func (m *Matrix) HasInclude() bool
    • func (m *Matrix) HasParams() bool
  • type OnErrorType
  • type Param
    • func (p *Param) ConvertFrom(ctx context.Context, source v1.Param)
    • func (in *Param) DeepCopy() *Param
    • func (in *Param) DeepCopyInto(out *Param)
  • type ParamSpec
    • func (in *ParamSpec) DeepCopy() *ParamSpec
    • func (in *ParamSpec) DeepCopyInto(out *ParamSpec)
    • func (pp *ParamSpec) SetDefaults(context.Context)
    • func (p ParamSpec) ValidateObjectType(ctx context.Context) *apis.FieldError
    • func (p ParamSpec) ValidateType(ctx context.Context) *apis.FieldError
  • type ParamSpecs
    • func (in ParamSpecs) DeepCopy() ParamSpecs
    • func (in ParamSpecs) DeepCopyInto(out *ParamSpecs)
    • func (ps ParamSpecs) ExtractDefaultParamArrayLengths() map[string]int
  • type ParamType
  • type ParamValue
    • func NewObject(pairs map[string]string) *ParamValue
    • func NewStructuredValues(value string, values …string) *ParamValue
    • func (paramValues *ParamValue) ApplyReplacements(stringReplacements map[string]string, arrayReplacements map[string][]string, …)
    • func (in *ParamValue) DeepCopy() *ParamValue
    • func (in *ParamValue) DeepCopyInto(out *ParamValue)
    • func (paramValues ParamValue) MarshalJSON() ([]byte, error)
    • func (paramValues *ParamValue) UnmarshalJSON(value []byte) error
  • type Params
    • func (in Params) DeepCopy() Params
    • func (in Params) DeepCopyInto(out *Params)
    • func (ps Params) ExtractNames() sets.String
    • func (ps Params) ExtractParamArrayLengths() map[string]int
    • func (ps Params) ReplaceVariables(stringReplacements map[string]string, arrayReplacements map[string][]string, …) Params
  • type Pipeline
    • func (p *Pipeline) ConvertFrom(ctx context.Context, from apis.Convertible) error
    • func (p *Pipeline) ConvertTo(ctx context.Context, to apis.Convertible) error
    • func (p *Pipeline) Copy() PipelineObject
    • func (in *Pipeline) DeepCopy() *Pipeline
    • func (in *Pipeline) DeepCopyInto(out *Pipeline)
    • func (in *Pipeline) DeepCopyObject() runtime.Object
    • func (*Pipeline) GetGroupVersionKind() schema.GroupVersionKind
    • func (p *Pipeline) PipelineMetadata() metav1.ObjectMeta
    • func (p *Pipeline) PipelineSpec() PipelineSpec
    • func (p *Pipeline) SetDefaults(ctx context.Context)
    • func (p *Pipeline) SupportedVerbs() []admissionregistrationv1.OperationType
    • func (p *Pipeline) Validate(ctx context.Context) *apis.FieldError
  • type PipelineDeclaredResourcedeprecated
    • func (in *PipelineDeclaredResource) DeepCopy() *PipelineDeclaredResource
    • func (in *PipelineDeclaredResource) DeepCopyInto(out *PipelineDeclaredResource)
  • type PipelineList
    • func (in *PipelineList) DeepCopy() *PipelineList
    • func (in *PipelineList) DeepCopyInto(out *PipelineList)
    • func (in *PipelineList) DeepCopyObject() runtime.Object
  • type PipelineObject
  • type PipelineRef
    • func (in *PipelineRef) DeepCopy() *PipelineRef
    • func (in *PipelineRef) DeepCopyInto(out *PipelineRef)
    • func (ref *PipelineRef) Validate(ctx context.Context) (errs *apis.FieldError)
  • type PipelineResourceBindingdeprecated
    • func (in *PipelineResourceBinding) DeepCopy() *PipelineResourceBinding
    • func (in *PipelineResourceBinding) DeepCopyInto(out *PipelineResourceBinding)
  • type PipelineResourceInterfacedeprecated
  • type PipelineResourceRefdeprecated
    • func (in *PipelineResourceRef) DeepCopy() *PipelineResourceRef
    • func (in *PipelineResourceRef) DeepCopyInto(out *PipelineResourceRef)
  • type PipelineResourceResult
  • type PipelineResourceTypedeprecated
  • type PipelineResult
    • func (in *PipelineResult) DeepCopy() *PipelineResult
    • func (in *PipelineResult) DeepCopyInto(out *PipelineResult)
  • type PipelineRun
    • func (pr *PipelineRun) ConvertFrom(ctx context.Context, from apis.Convertible) error
    • func (pr *PipelineRun) ConvertTo(ctx context.Context, to apis.Convertible) error
    • func (in *PipelineRun) DeepCopy() *PipelineRun
    • func (in *PipelineRun) DeepCopyInto(out *PipelineRun)
    • func (in *PipelineRun) DeepCopyObject() runtime.Object
    • func (pr *PipelineRun) FinallyTimeout() *metav1.Duration
    • func (*PipelineRun) GetGroupVersionKind() schema.GroupVersionKind
    • func (pr *PipelineRun) GetName() string
    • func (pr *PipelineRun) GetNamespacedName() types.NamespacedName
    • func (pr *PipelineRun) GetStatusCondition() apis.ConditionAccessor
    • func (pr *PipelineRun) GetTaskRunSpec(pipelineTaskName string) PipelineTaskRunSpec
    • func (pr *PipelineRun) HasFinallyTimedOut(ctx context.Context, c clock.PassiveClock) bool
    • func (pr *PipelineRun) HasStarted() bool
    • func (pr *PipelineRun) HasTimedOut(ctx context.Context, c clock.PassiveClock) bool
    • func (pr *PipelineRun) HasTimedOutForALongTime(ctx context.Context, c clock.PassiveClock) bool
    • func (pr *PipelineRun) HasVolumeClaimTemplate() bool
    • func (pr *PipelineRun) HaveTasksTimedOut(ctx context.Context, c clock.PassiveClock) bool
    • func (pr *PipelineRun) IsCancelled() bool
    • func (pr *PipelineRun) IsDone() bool
    • func (pr *PipelineRun) IsGracefullyCancelled() bool
    • func (pr *PipelineRun) IsGracefullyStopped() bool
    • func (pr *PipelineRun) IsPending() bool
    • func (pr *PipelineRun) IsTimeoutConditionSet() bool
    • func (pr *PipelineRun) PipelineTimeout(ctx context.Context) time.Duration
    • func (pr *PipelineRun) SetDefaults(ctx context.Context)
    • func (pr *PipelineRun) SetTimeoutCondition(ctx context.Context)
    • func (pr *PipelineRun) SupportedVerbs() []admissionregistrationv1.OperationType
    • func (pr *PipelineRun) TasksTimeout() *metav1.Duration
    • func (pr *PipelineRun) Validate(ctx context.Context) *apis.FieldError
  • type PipelineRunList
    • func (in *PipelineRunList) DeepCopy() *PipelineRunList
    • func (in *PipelineRunList) DeepCopyInto(out *PipelineRunList)
    • func (in *PipelineRunList) DeepCopyObject() runtime.Object
  • type PipelineRunReason
    • func (t PipelineRunReason) String() string
  • type PipelineRunResult
    • func (in *PipelineRunResult) DeepCopy() *PipelineRunResult
    • func (in *PipelineRunResult) DeepCopyInto(out *PipelineRunResult)
  • type PipelineRunRunStatus
    • func (in *PipelineRunRunStatus) DeepCopy() *PipelineRunRunStatus
    • func (in *PipelineRunRunStatus) DeepCopyInto(out *PipelineRunRunStatus)
  • type PipelineRunSpec
    • func (prs *PipelineRunSpec) ConvertFrom(ctx context.Context, source *v1.PipelineRunSpec, meta *metav1.ObjectMeta) error
    • func (prs PipelineRunSpec) ConvertTo(ctx context.Context, sink *v1.PipelineRunSpec, meta *metav1.ObjectMeta) error
    • func (in *PipelineRunSpec) DeepCopy() *PipelineRunSpec
    • func (in *PipelineRunSpec) DeepCopyInto(out *PipelineRunSpec)
    • func (prs *PipelineRunSpec) SetDefaults(ctx context.Context)
    • func (ps *PipelineRunSpec) Validate(ctx context.Context) (errs *apis.FieldError)
  • type PipelineRunSpecStatus
  • type PipelineRunStatus
    • func (in *PipelineRunStatus) DeepCopy() *PipelineRunStatus
    • func (in *PipelineRunStatus) DeepCopyInto(out *PipelineRunStatus)
    • func (pr *PipelineRunStatus) GetCondition(t apis.ConditionType) *apis.Condition
    • func (pr *PipelineRunStatus) InitializeConditions(c clock.PassiveClock)
    • func (pr *PipelineRunStatus) MarkFailed(reason, messageFormat string, messageA …interface{})
    • func (pr *PipelineRunStatus) MarkRunning(reason, messageFormat string, messageA …interface{})
    • func (pr *PipelineRunStatus) MarkSucceeded(reason, messageFormat string, messageA …interface{})
    • func (pr *PipelineRunStatus) SetCondition(newCond *apis.Condition)
  • type PipelineRunStatusFields
    • func (in *PipelineRunStatusFields) DeepCopy() *PipelineRunStatusFields
    • func (in *PipelineRunStatusFields) DeepCopyInto(out *PipelineRunStatusFields)
  • type PipelineRunTaskRunStatus
    • func (in *PipelineRunTaskRunStatus) DeepCopy() *PipelineRunTaskRunStatus
    • func (in *PipelineRunTaskRunStatus) DeepCopyInto(out *PipelineRunTaskRunStatus)
  • type PipelineSpec
    • func (ps *PipelineSpec) ConvertFrom(ctx context.Context, source *v1.PipelineSpec, meta *metav1.ObjectMeta) error
    • func (ps *PipelineSpec) ConvertTo(ctx context.Context, sink *v1.PipelineSpec, meta *metav1.ObjectMeta) error
    • func (in *PipelineSpec) DeepCopy() *PipelineSpec
    • func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
    • func (ps *PipelineSpec) GetIndexingReferencesToArrayParams() sets.String
    • func (ps *PipelineSpec) SetDefaults(ctx context.Context)
    • func (ps *PipelineSpec) Validate(ctx context.Context) (errs *apis.FieldError)
  • type PipelineTask
    • func (in *PipelineTask) DeepCopy() *PipelineTask
    • func (in *PipelineTask) DeepCopyInto(out *PipelineTask)
    • func (pt PipelineTask) Deps() []string
    • func (pt PipelineTask) HashKey() string
    • func (pt *PipelineTask) IsMatrixed() bool
    • func (pt *PipelineTask) SetDefaults(ctx context.Context)
    • func (pt *PipelineTask) TaskSpecMetadata() PipelineTaskMetadata
    • func (pt PipelineTask) Validate(ctx context.Context) (errs *apis.FieldError)
    • func (pt PipelineTask) ValidateName() *apis.FieldError
  • type PipelineTaskInputResourcedeprecated
    • func (in *PipelineTaskInputResource) DeepCopy() *PipelineTaskInputResource
    • func (in *PipelineTaskInputResource) DeepCopyInto(out *PipelineTaskInputResource)
  • type PipelineTaskList
    • func (in PipelineTaskList) DeepCopy() PipelineTaskList
    • func (in PipelineTaskList) DeepCopyInto(out *PipelineTaskList)
    • func (l PipelineTaskList) Deps() map[string][]string
    • func (l PipelineTaskList) Items() []dag.Task
    • func (l PipelineTaskList) Names() sets.String
    • func (l PipelineTaskList) Validate(ctx context.Context, taskNames sets.String, path string) (errs *apis.FieldError)
  • type PipelineTaskMetadata
    • func (in *PipelineTaskMetadata) DeepCopy() *PipelineTaskMetadata
    • func (in *PipelineTaskMetadata) DeepCopyInto(out *PipelineTaskMetadata)
  • type PipelineTaskOutputResourcedeprecated
    • func (in *PipelineTaskOutputResource) DeepCopy() *PipelineTaskOutputResource
    • func (in *PipelineTaskOutputResource) DeepCopyInto(out *PipelineTaskOutputResource)
  • type PipelineTaskParam
    • func (in *PipelineTaskParam) DeepCopy() *PipelineTaskParam
    • func (in *PipelineTaskParam) DeepCopyInto(out *PipelineTaskParam)
  • type PipelineTaskResourcesdeprecated
    • func (in *PipelineTaskResources) DeepCopy() *PipelineTaskResources
    • func (in *PipelineTaskResources) DeepCopyInto(out *PipelineTaskResources)
  • type PipelineTaskRun
    • func (in *PipelineTaskRun) DeepCopy() *PipelineTaskRun
    • func (in *PipelineTaskRun) DeepCopyInto(out *PipelineTaskRun)
  • type PipelineTaskRunSpec
    • func (in *PipelineTaskRunSpec) DeepCopy() *PipelineTaskRunSpec
    • func (in *PipelineTaskRunSpec) DeepCopyInto(out *PipelineTaskRunSpec)
  • type PipelineWorkspaceDeclaration
    • func (in *PipelineWorkspaceDeclaration) DeepCopy() *PipelineWorkspaceDeclaration
    • func (in *PipelineWorkspaceDeclaration) DeepCopyInto(out *PipelineWorkspaceDeclaration)
  • type PropertySpec
    • func (in *PropertySpec) DeepCopy() *PropertySpec
    • func (in *PropertySpec) DeepCopyInto(out *PropertySpec)
  • type Provenance
    • func (in *Provenance) DeepCopy() *Provenance
    • func (in *Provenance) DeepCopyInto(out *Provenance)
  • type RefSource
    • func (in *RefSource) DeepCopy() *RefSource
    • func (in *RefSource) DeepCopyInto(out *RefSource)
  • type ResolverName
  • type ResolverRef
    • func (in *ResolverRef) DeepCopy() *ResolverRef
    • func (in *ResolverRef) DeepCopyInto(out *ResolverRef)
  • type ResourceDeclarationdeprecated
  • type ResourceParamdeprecated
  • type ResultRef
    • func NewResultRefs(expressions []string) []*ResultRef
    • func PipelineTaskResultRefs(pt *PipelineTask) []*ResultRef
    • func (in *ResultRef) DeepCopy() *ResultRef
    • func (in *ResultRef) DeepCopyInto(out *ResultRef)
  • type ResultType
  • type ResultValue
  • type ResultsType
  • type RunObject
  • type RunResult
  • type Sidecar
    • func MergeSidecarsWithOverrides(sidecars []Sidecar, overrides []TaskRunSidecarOverride) ([]Sidecar, error)
    • func (in *Sidecar) DeepCopy() *Sidecar
    • func (in *Sidecar) DeepCopyInto(out *Sidecar)
    • func (s *Sidecar) SetContainerFields(c corev1.Container)
    • func (s *Sidecar) ToK8sContainer() *corev1.Container
  • type SidecarState
    • func (in *SidecarState) DeepCopy() *SidecarState
    • func (in *SidecarState) DeepCopyInto(out *SidecarState)
  • type SkippedTask
    • func (in *SkippedTask) DeepCopy() *SkippedTask
    • func (in *SkippedTask) DeepCopyInto(out *SkippedTask)
  • type SkippingReason
  • type Step
    • func MergeStepsWithOverrides(steps []Step, overrides []TaskRunStepOverride) ([]Step, error)
    • func MergeStepsWithStepTemplate(template *StepTemplate, steps []Step) ([]Step, error)
    • func (in *Step) DeepCopy() *Step
    • func (in *Step) DeepCopyInto(out *Step)
    • func (s *Step) SetContainerFields(c corev1.Container)
    • func (s *Step) ToK8sContainer() *corev1.Container
  • type StepOutputConfig
    • func (in *StepOutputConfig) DeepCopy() *StepOutputConfig
    • func (in *StepOutputConfig) DeepCopyInto(out *StepOutputConfig)
  • type StepState
    • func (in *StepState) DeepCopy() *StepState
    • func (in *StepState) DeepCopyInto(out *StepState)
  • type StepTemplate
    • func (in *StepTemplate) DeepCopy() *StepTemplate
    • func (in *StepTemplate) DeepCopyInto(out *StepTemplate)
    • func (s *StepTemplate) SetContainerFields(c corev1.Container)
    • func (s *StepTemplate) ToK8sContainer() *corev1.Container
  • type Task
    • func (t *Task) ConvertFrom(ctx context.Context, from apis.Convertible) error
    • func (t *Task) ConvertTo(ctx context.Context, to apis.Convertible) error
    • func (t *Task) Copy() TaskObject
    • func (in *Task) DeepCopy() *Task
    • func (in *Task) DeepCopyInto(out *Task)
    • func (in *Task) DeepCopyObject() runtime.Object
    • func (*Task) GetGroupVersionKind() schema.GroupVersionKind
    • func (t *Task) SetDefaults(ctx context.Context)
    • func (t *Task) SupportedVerbs() []admissionregistrationv1.OperationType
    • func (t *Task) TaskMetadata() metav1.ObjectMeta
    • func (t *Task) TaskSpec() TaskSpec
    • func (t *Task) Validate(ctx context.Context) *apis.FieldError
  • type TaskKind
  • type TaskList
    • func (in *TaskList) DeepCopy() *TaskList
    • func (in *TaskList) DeepCopyInto(out *TaskList)
    • func (in *TaskList) DeepCopyObject() runtime.Object
  • type TaskModifierdeprecated
  • type TaskObject
  • type TaskRef
    • func (tr *TaskRef) ConvertFrom(ctx context.Context, source v1.TaskRef)
    • func (in *TaskRef) DeepCopy() *TaskRef
    • func (in *TaskRef) DeepCopyInto(out *TaskRef)
    • func (tr *TaskRef) IsCustomTask() bool
    • func (ref *TaskRef) Validate(ctx context.Context) (errs *apis.FieldError)
  • type TaskResourcedeprecated
    • func (in *TaskResource) DeepCopy() *TaskResource
    • func (in *TaskResource) DeepCopyInto(out *TaskResource)
  • type TaskResourceBindingdeprecated
    • func (in *TaskResourceBinding) DeepCopy() *TaskResourceBinding
    • func (in *TaskResourceBinding) DeepCopyInto(out *TaskResourceBinding)
  • type TaskResourcesdeprecated
    • func (in *TaskResources) DeepCopy() *TaskResources
    • func (in *TaskResources) DeepCopyInto(out *TaskResources)
  • type TaskResult
    • func (in *TaskResult) DeepCopy() *TaskResult
    • func (in *TaskResult) DeepCopyInto(out *TaskResult)
    • func (tr *TaskResult) SetDefaults(context.Context)
    • func (tr TaskResult) Validate(ctx context.Context) (errs *apis.FieldError)
  • type TaskRun
    • func (tr *TaskRun) ConvertFrom(ctx context.Context, from apis.Convertible) error
    • func (tr *TaskRun) ConvertTo(ctx context.Context, to apis.Convertible) error
    • func (in *TaskRun) DeepCopy() *TaskRun
    • func (in *TaskRun) DeepCopyInto(out *TaskRun)
    • func (in *TaskRun) DeepCopyObject() runtime.Object
    • func (*TaskRun) GetGroupVersionKind() schema.GroupVersionKind
    • func (tr *TaskRun) GetNamespacedName() types.NamespacedName
    • func (tr *TaskRun) GetPipelineRunPVCName() string
    • func (tr *TaskRun) GetStatusCondition() apis.ConditionAccessor
    • func (tr *TaskRun) GetTimeout(ctx context.Context) time.Duration
    • func (tr *TaskRun) HasPipelineRunOwnerReference() bool
    • func (tr *TaskRun) HasStarted() bool
    • func (tr *TaskRun) HasTimedOut(ctx context.Context, c clock.PassiveClock) bool
    • func (tr *TaskRun) HasVolumeClaimTemplate() bool
    • func (tr *TaskRun) IsCancelled() bool
    • func (tr *TaskRun) IsDone() bool
    • func (tr *TaskRun) IsRetriable() bool
    • func (tr *TaskRun) IsSuccessful() bool
    • func (tr *TaskRun) IsTaskRunResultDone() bool
    • func (tr *TaskRun) IsTaskRunResultVerified() bool
    • func (tr *TaskRun) SetDefaults(ctx context.Context)
    • func (tr *TaskRun) SupportedVerbs() []admissionregistrationv1.OperationType
    • func (tr *TaskRun) Validate(ctx context.Context) *apis.FieldError
  • type TaskRunConditionType
    • func (t TaskRunConditionType) String() string
  • type TaskRunDebug
    • func (in *TaskRunDebug) DeepCopy() *TaskRunDebug
    • func (in *TaskRunDebug) DeepCopyInto(out *TaskRunDebug)
  • type TaskRunInputsdeprecated
    • func (in *TaskRunInputs) DeepCopy() *TaskRunInputs
    • func (in *TaskRunInputs) DeepCopyInto(out *TaskRunInputs)
  • type TaskRunList
    • func (in *TaskRunList) DeepCopy() *TaskRunList
    • func (in *TaskRunList) DeepCopyInto(out *TaskRunList)
    • func (in *TaskRunList) DeepCopyObject() runtime.Object
  • type TaskRunOutputsdeprecated
    • func (in *TaskRunOutputs) DeepCopy() *TaskRunOutputs
    • func (in *TaskRunOutputs) DeepCopyInto(out *TaskRunOutputs)
  • type TaskRunReason
    • func (t TaskRunReason) String() string
  • type TaskRunResourcesdeprecated
    • func (in *TaskRunResources) DeepCopy() *TaskRunResources
    • func (in *TaskRunResources) DeepCopyInto(out *TaskRunResources)
  • type TaskRunResult
    • func (in *TaskRunResult) DeepCopy() *TaskRunResult
    • func (in *TaskRunResult) DeepCopyInto(out *TaskRunResult)
  • type TaskRunSidecarOverride
    • func (in *TaskRunSidecarOverride) DeepCopy() *TaskRunSidecarOverride
    • func (in *TaskRunSidecarOverride) DeepCopyInto(out *TaskRunSidecarOverride)
  • type TaskRunSpec
    • func (trs *TaskRunSpec) ConvertFrom(ctx context.Context, source *v1.TaskRunSpec, meta *metav1.ObjectMeta) error
    • func (trs *TaskRunSpec) ConvertTo(ctx context.Context, sink *v1.TaskRunSpec, meta *metav1.ObjectMeta) error
    • func (in *TaskRunSpec) DeepCopy() *TaskRunSpec
    • func (in *TaskRunSpec) DeepCopyInto(out *TaskRunSpec)
    • func (trs *TaskRunSpec) SetDefaults(ctx context.Context)
    • func (ts *TaskRunSpec) Validate(ctx context.Context) (errs *apis.FieldError)
  • type TaskRunSpecStatus
  • type TaskRunSpecStatusMessage
  • type TaskRunStatus
    • func (trs *TaskRunStatus) ConvertFrom(ctx context.Context, source v1.TaskRunStatus, meta *metav1.ObjectMeta) error
    • func (trs *TaskRunStatus) ConvertTo(ctx context.Context, sink *v1.TaskRunStatus, meta *metav1.ObjectMeta) error
    • func (in *TaskRunStatus) DeepCopy() *TaskRunStatus
    • func (in *TaskRunStatus) DeepCopyInto(out *TaskRunStatus)
    • func (trs *TaskRunStatus) GetCondition(t apis.ConditionType) *apis.Condition
    • func (trs *TaskRunStatus) GetRunningReason() string
    • func (trs *TaskRunStatus) GetStartedReason() string
    • func (trs *TaskRunStatus) InitializeConditions()
    • func (trs *TaskRunStatus) MarkResourceFailed(reason TaskRunReason, err error)
    • func (trs *TaskRunStatus) MarkResourceOngoing(reason TaskRunReason, message string)
    • func (trs *TaskRunStatus) SetCondition(newCond *apis.Condition)
  • type TaskRunStatusFields
    • func (in *TaskRunStatusFields) DeepCopy() *TaskRunStatusFields
    • func (in *TaskRunStatusFields) DeepCopyInto(out *TaskRunStatusFields)
  • type TaskRunStepOverride
    • func (in *TaskRunStepOverride) DeepCopy() *TaskRunStepOverride
    • func (in *TaskRunStepOverride) DeepCopyInto(out *TaskRunStepOverride)
  • type TaskSpec
    • func (ts *TaskSpec) ConvertFrom(ctx context.Context, source *v1.TaskSpec, meta *metav1.ObjectMeta, …) error
    • func (ts *TaskSpec) ConvertTo(ctx context.Context, sink *v1.TaskSpec, meta *metav1.ObjectMeta, …) error
    • func (in *TaskSpec) DeepCopy() *TaskSpec
    • func (in *TaskSpec) DeepCopyInto(out *TaskSpec)
    • func (ts *TaskSpec) GetIndexingReferencesToArrayParams() sets.String
    • func (ts *TaskSpec) HasDeprecatedFields() bool
    • func (ts *TaskSpec) SetDefaults(ctx context.Context)
    • func (ts *TaskSpec) Validate(ctx context.Context) (errs *apis.FieldError)
  • type TimeoutFields
    • func (in *TimeoutFields) DeepCopy() *TimeoutFields
    • func (in *TimeoutFields) DeepCopyInto(out *TimeoutFields)
  • type WhenExpression
    • func (in *WhenExpression) DeepCopy() *WhenExpression
    • func (in *WhenExpression) DeepCopyInto(out *WhenExpression)
    • func (we *WhenExpression) GetVarSubstitutionExpressions() ([]string, bool)
  • type WhenExpressions
    • func (wes WhenExpressions) AllowsExecution() bool
    • func (in WhenExpressions) DeepCopy() WhenExpressions
    • func (in WhenExpressions) DeepCopyInto(out *WhenExpressions)
    • func (wes WhenExpressions) ReplaceVariables(replacements map[string]string, arrayReplacements map[string][]string) WhenExpressions
  • type WorkspaceBinding
    • func (w *WorkspaceBinding) ConvertFrom(ctx context.Context, source v1.WorkspaceBinding)
    • func (in *WorkspaceBinding) DeepCopy() *WorkspaceBinding
    • func (in *WorkspaceBinding) DeepCopyInto(out *WorkspaceBinding)
    • func (b *WorkspaceBinding) Validate(ctx context.Context) (errs *apis.FieldError)
  • type WorkspaceDeclaration
    • func (in *WorkspaceDeclaration) DeepCopy() *WorkspaceDeclaration
    • func (in *WorkspaceDeclaration) DeepCopyInto(out *WorkspaceDeclaration)
    • func (w *WorkspaceDeclaration) GetMountPath() string
  • type WorkspacePipelineDeclarationdeprecated
  • type WorkspacePipelineTaskBinding
    • func (in *WorkspacePipelineTaskBinding) DeepCopy() *WorkspacePipelineTaskBinding
    • func (in *WorkspacePipelineTaskBinding) DeepCopyInto(out *WorkspacePipelineTaskBinding)
  • type WorkspaceUsage
    • func (in *WorkspaceUsage) DeepCopy() *WorkspaceUsage
    • func (in *WorkspaceUsage) DeepCopyInto(out *WorkspaceUsage)

View Source

const (

PipelineTasksAggregateStatus = "tasks.status"

PipelineTasks = "tasks"

PipelineFinallyTasks = "finally"

)

View Source

const (

PipelineRunSpecStatusCancelled = "Cancelled"



PipelineRunSpecStatusCancelledRunFinally = "CancelledRunFinally"




PipelineRunSpecStatusStoppedRunFinally = "StoppedRunFinally"



PipelineRunSpecStatusPending = "PipelineRunPending"

)

View Source

const (

ResultTaskPart = "tasks"

ResultFinallyPart = "finally"

ResultResultPart = "results"


ResultNameFormat = \`^(\[A-Za-z0-9\]\[-A-Za-z0-9\_.\]\*)?\[A-Za-z0-9\]$\`

)

View Source

const ManagedByLabelKey = “app.kubernetes.io/managed-by”

ManagedByLabelKey is the label key used to mark what is managing this resource

ParamsPrefix is the prefix used in $(…) expressions referring to parameters

View Source

const TaskDeprecationsAnnotationKey = “tekton.dev/v1beta1.task-deprecations”

TaskDeprecationsAnnotationKey is the annotation key for all deprecated fields of (a) Task(s) that belong(s) to an object. For example: a v1beta1.Pipeline contains two tasks

spec:

tasks:

  • name: task-1 stepTemplate: name: deprecated-name-field # deprecated field
  • name: task-2 steps:
    • tty: true # deprecated field

The annotation would be:

"tekton.dev/v1beta1.task-deprecations": `{ "task1":{ "deprecatedStepTemplates":{ “name":"deprecated-name-field” }, }, "task-2":{ "deprecatedSteps":[{"tty":true}], }, }`

View Source

const (

TaskRunSpecStatusCancelled = "TaskRunCancelled"

)

View Source

var (

AddToScheme = schemeBuilder.AddToScheme

)

AllParamTypes can be used for ParamType validation.

AllResultsTypes can be used for ResultsTypes validation.

NewArrayOrString is the deprecated, this is to keep backward compatibility

SchemeGroupVersion is group version used to register these objects

VariableSubstitutionRegex is a regex to find all result matching substitutions

ArrayReference returns the name of the parameter from array parameter reference returns arrayParam from $(params.arrayParam[*])

func GetVarSubstitutionExpressionsForParam(param Param) ([]string, bool)

GetVarSubstitutionExpressionsForParam extracts all the value between "$(" and ")“” for a parameter

func GetVarSubstitutionExpressionsForPipelineResult(result PipelineResult) ([]string, bool)

GetVarSubstitutionExpressionsForPipelineResult extracts all the value between "$(" and ")“” for a pipeline result

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func LooksLikeContainsResultRefs(expressions []string) bool

LooksLikeContainsResultRefs attempts to check if param or a pipeline result looks like it contains any result references. This is useful if we want to make sure the param looks like a ResultReference before performing strict validation

ParseResultName parse the input string to extract resultName and result index. Array indexing: Input: anArrayResult[1] Output: anArrayResult, “1” Array star reference: Input: anArrayResult[*] Output: anArrayResult, “*”

Resource takes an unqualified resource and returns a Group qualified GroupResource

ResultsArrayReference returns the reference of the result. e.g. results.resultname from $(results.resultname[*])

ValidateParameterTypes validates all the types within a slice of ParamSpecs

ValidateParameterVariables validates all variables within a slice of ParamSpecs against a slice of Steps

ValidateParameters makes sure the params for the Task are valid.

ValidatePipelineParameterVariables validates parameters with those specified by each pipeline task, (1) it validates the type of parameter is either string or array (2) parameter default value matches with the type of that param

ValidatePipelineTasks ensures that pipeline tasks has unique label, pipeline tasks has specified one of taskRef or taskSpec, and in case of a pipeline task with taskRef, it has a reference to a valid task (task name)

ValidateUsageOfDeclaredParameters validates that all parameters referenced in the Task are declared by the Task.

ValidateVolumes validates a slice of volumes to make sure there are no dupilcate names

ValidateWorkspaceBindings makes sure the volumes provided for the Task’s declared workspaces make sense.

type ArrayOrString = ParamValue

ArrayOrString is deprecated, this is to keep backward compatibility

Deprecated: Use ParamValue instead.

type ChildStatusReference struct { runtime.TypeMeta `json:",inline"`

Name string \`json:"name,omitempty"\`

PipelineTaskName string \`json:"pipelineTaskName,omitempty"\`




WhenExpressions \[\]WhenExpression \`json:"whenExpressions,omitempty"\`

}

ChildStatusReference is used to point to the statuses of individual TaskRuns and Runs within this PipelineRun.

func (in *ChildStatusReference) DeepCopy() *ChildStatusReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChildStatusReference.

func (in *ChildStatusReference) DeepCopyInto(out *ChildStatusReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudEventCondition string

CloudEventCondition is a string that represents the condition of the event.

const (

CloudEventConditionUnknown CloudEventCondition = "Unknown"

CloudEventConditionSent CloudEventCondition = "Sent"


CloudEventConditionFailed CloudEventCondition = "Failed"

)

type CloudEventDelivery struct {

Target string                  \`json:"target,omitempty"\`
Status CloudEventDeliveryState \`json:"status,omitempty"\`

}

CloudEventDelivery is the target of a cloud event along with the state of delivery.

func (in *CloudEventDelivery) DeepCopy() *CloudEventDelivery

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventDelivery.

func (in *CloudEventDelivery) DeepCopyInto(out *CloudEventDelivery)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudEventDeliveryState struct {

Condition CloudEventCondition \`json:"condition,omitempty"\`


SentAt \*metav1.Time \`json:"sentAt,omitempty"\`

Error string \`json:"message"\`

RetryCount int32 \`json:"retryCount"\`

}

CloudEventDeliveryState reports the state of a cloud event to be sent.

func (in *CloudEventDeliveryState) DeepCopy() *CloudEventDeliveryState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventDeliveryState.

func (in *CloudEventDeliveryState) DeepCopyInto(out *CloudEventDeliveryState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ClusterTask is a Task with a cluster scope. ClusterTasks are used to represent Tasks that should be publicly addressable from any namespace in the cluster.

Deprecated: Please use the cluster resolver instead.

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (t *ClusterTask) Copy() TaskObject

Copy returns a DeepCopy of the ClusterTask

func (in *ClusterTask) DeepCopy() *ClusterTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTask.

func (in *ClusterTask) DeepCopyInto(out *ClusterTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

GetGroupVersionKind implements kmeta.OwnerRefable.

SetDefaults sets the default values for the ClusterTask’s Spec.

TaskMetadata returns the ObjectMeta for the ClusterTask

func (t *ClusterTask) TaskSpec() TaskSpec

TaskSpec returns the ClusterTask’s Spec

Validate performs validation of the metadata and spec of this ClusterTask.

ClusterTaskList contains a list of ClusterTask

func (in *ClusterTaskList) DeepCopy() *ClusterTaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTaskList.

func (in *ClusterTaskList) DeepCopyInto(out *ClusterTaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Combination is a map, mainly defined to hold a single combination from a Matrix with key as param.Name and value as param.Value

func (in Combination) DeepCopy() Combination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Combination.

func (in Combination) DeepCopyInto(out *Combination)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Combinations []Combination

Combinations is a Combination list

func (in Combinations) DeepCopy() Combinations

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Combinations.

func (in Combinations) DeepCopyInto(out *Combinations)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigSource struct {

URI string \`json:"uri,omitempty"\`



Digest map\[string\]string \`json:"digest,omitempty"\`




EntryPoint string \`json:"entryPoint,omitempty"\`

}

ConfigSource contains the information that can uniquely identify where a remote built definition came from i.e. Git repositories, Tekton Bundles in OCI registry and hub.

func (in *ConfigSource) DeepCopy() *ConfigSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigSource.

func (in *ConfigSource) DeepCopyInto(out *ConfigSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomRun struct { metav1.TypeMeta `json:",inline"`

metav1.ObjectMeta \`json:"metadata,omitempty"\`


Spec CustomRunSpec \`json:"spec,omitempty"\`

Status CustomRunStatus \`json:"status,omitempty"\`

}

CustomRun represents a single execution of a Custom Task.

+k8s:openapi-gen=true

func (in *CustomRun) DeepCopy() *CustomRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomRun.

func (in *CustomRun) DeepCopyInto(out *CustomRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (r *CustomRun) GetCustomRunKey() string

GetCustomRunKey return the customrun’s key for timeout handler map

GetGroupVersionKind implements kmeta.OwnerRefable.

func (r *CustomRun) GetRetryCount() int

GetRetryCount returns the number of times this CustomRun has already been retried

GetStatus retrieves the status of the Parallel. Implements the KRShaped interface.

GetStatusCondition returns the task run status as a ConditionAccessor

GetTimeout returns the timeout for this customrun, or the default if not configured

func (r *CustomRun) HasPipelineRunOwnerReference() bool

HasPipelineRunOwnerReference returns true of CustomRun has owner reference of type PipelineRun

func (r *CustomRun) HasStarted() bool

HasStarted function check whether taskrun has valid start time set in its status

HasTimedOut returns true if the CustomRun’s running time is beyond the allowed timeout

func (r *CustomRun) IsCancelled() bool

IsCancelled returns true if the CustomRun’s spec status is set to Cancelled state

IsDone returns true if the CustomRun’s status indicates that it is done.

func (r *CustomRun) IsSuccessful() bool

IsSuccessful returns true if the CustomRun’s status indicates that it is done.

SetDefaults implements apis.Defaultable

SupportedVerbs returns the operations that validation should be called for

CustomRunList contains a list of CustomRun

func (in *CustomRunList) DeepCopy() *CustomRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomRunList.

func (in *CustomRunList) DeepCopyInto(out *CustomRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

CustomRunReason is an enum used to store all Run reason for the Succeeded condition that are controlled by the CustomRun itself.

const (

CustomRunReasonStarted CustomRunReason = "Started"

CustomRunReasonRunning CustomRunReason = "Running"

CustomRunReasonSuccessful CustomRunReason = "Succeeded"

CustomRunReasonFailed CustomRunReason = "Failed"

CustomRunReasonCancelled CustomRunReason = "CustomRunCancelled"

CustomRunReasonTimedOut CustomRunReason = "CustomRunTimedOut"


CustomRunReasonWorkspaceNotSupported CustomRunReason = "CustomRunWorkspaceNotSupported"

)

CustomRunResult used to describe the results of a task

type CustomRunSpec struct {

CustomRef \*TaskRef \`json:"customRef,omitempty"\`



CustomSpec \*EmbeddedCustomRunSpec \`json:"customSpec,omitempty"\`



Params Params \`json:"params,omitempty"\`



Status CustomRunSpecStatus \`json:"status,omitempty"\`



StatusMessage CustomRunSpecStatusMessage \`json:"statusMessage,omitempty"\`



Retries int \`json:"retries,omitempty"\`


ServiceAccountName string \`json:"serviceAccountName"\`




Timeout \*metav1.Duration \`json:"timeout,omitempty"\`




Workspaces \[\]WorkspaceBinding \`json:"workspaces,omitempty"\`

}

CustomRunSpec defines the desired state of CustomRun

func (in *CustomRunSpec) DeepCopy() *CustomRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomRunSpec.

func (in *CustomRunSpec) DeepCopyInto(out *CustomRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

GetParam gets the Param from the CustomRunSpec with the given name TODO(jasonhall): Move this to a Params type so other code can use it?

SetDefaults implements apis.Defaultable

type CustomRunSpecStatus string

CustomRunSpecStatus defines the taskrun spec status the user can provide

const (

CustomRunSpecStatusCancelled CustomRunSpecStatus = "RunCancelled"

)

type CustomRunSpecStatusMessage string

CustomRunSpecStatusMessage defines human readable status messages for the TaskRun.

const (

CustomRunCancelledByPipelineMsg CustomRunSpecStatusMessage = "CustomRun cancelled as the PipelineRun it belongs to has been cancelled."

CustomRunCancelledByPipelineTimeoutMsg CustomRunSpecStatusMessage = "CustomRun cancelled as the PipelineRun it belongs to has timed out."

)

CustomRunStatus defines the observed state of CustomRun.

CustomRunStatusFields holds the fields of CustomRun’s status. This is defined separately and inlined so that other types can readily consume these fields via duck typing.

EmbeddedCustomRunSpec allows custom task definitions to be embedded

func (in *EmbeddedCustomRunSpec) DeepCopy() *EmbeddedCustomRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedCustomRunSpec.

func (in *EmbeddedCustomRunSpec) DeepCopyInto(out *EmbeddedCustomRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type EmbeddedTask struct {

runtime.TypeMeta \`json:",inline,omitempty"\`



Spec runtime.RawExtension \`json:"spec,omitempty"\`


Metadata PipelineTaskMetadata \`json:"metadata,omitempty"\`



TaskSpec \`json:",inline,omitempty"\`

}

EmbeddedTask is used to define a Task inline within a Pipeline’s PipelineTasks.

func (in *EmbeddedTask) DeepCopy() *EmbeddedTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedTask.

func (in *EmbeddedTask) DeepCopyInto(out *EmbeddedTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (et *EmbeddedTask) IsCustomTask() bool

IsCustomTask checks whether an embedded TaskSpec is a Custom Task

type IncludeParams struct {

Name string \`json:"name,omitempty"\`




Params Params \`json:"params,omitempty"\`

}

IncludeParams allows passing in a specific combinations of Parameters into the Matrix.

func (in *IncludeParams) DeepCopy() *IncludeParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IncludeParams.

func (in *IncludeParams) DeepCopyInto(out *IncludeParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IncludeParamsList []IncludeParams

IncludeParamsList is a list of IncludeParams which allows passing in specific combinations of Parameters into the Matrix.

func (in IncludeParamsList) DeepCopy() IncludeParamsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IncludeParamsList.

func (in IncludeParamsList) DeepCopyInto(out *IncludeParamsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InternalTaskModifier struct {

StepsToPrepend \[\]Step \`json:"stepsToPrepend"\`

StepsToAppend \[\]Step \`json:"stepsToAppend"\`

Volumes \[\]v1.Volume \`json:"volumes"\`

}

InternalTaskModifier implements TaskModifier for resources that are built-in to Tekton Pipelines.

Deprecated: Unused, preserved only for backwards compatibility

func (in *InternalTaskModifier) DeepCopy() *InternalTaskModifier

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalTaskModifier.

func (in *InternalTaskModifier) DeepCopyInto(out *InternalTaskModifier)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Matrix struct {

Params Params \`json:"params,omitempty"\`




Include IncludeParamsList \`json:"include,omitempty"\`

}

Matrix is used to fan out Tasks in a Pipeline

func (m *Matrix) CountCombinations() int

CountCombinations returns the count of Combinations of Parameters generated from the Matrix in PipelineTask.

func (in *Matrix) DeepCopy() *Matrix

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Matrix.

func (in *Matrix) DeepCopyInto(out *Matrix)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (m *Matrix) FanOut() []Params

FanOut returns an list of params that represent combinations

func (m *Matrix) GetAllParams() Params

GetAllParams returns a list of all Matrix Parameters

func (m *Matrix) HasInclude() bool

HasInclude returns true if the Matrix has Include Parameters

func (m *Matrix) HasParams() bool

HasParams returns true if the Matrix has Parameters

OnErrorType defines a list of supported exiting behavior of a container on error

const (

StopAndFail OnErrorType = "stopAndFail"

Continue OnErrorType = "continue"

)

type Param struct { Name string `json:"name"` Value ParamValue `json:"value"` }

Param declares an ParamValues to use for the parameter called name.

ConvertFrom converts v1beta1 Param from v1 Param

func (in *Param) DeepCopy() *Param

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.

func (in *Param) DeepCopyInto(out *Param)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ParamSpec struct {

Name string \`json:"name"\`



Type ParamType \`json:"type,omitempty"\`



Description string \`json:"description,omitempty"\`


Properties map\[string\]PropertySpec \`json:"properties,omitempty"\`




Default \*ParamValue \`json:"default,omitempty"\`

}

ParamSpec defines arbitrary parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.

func (in *ParamSpec) DeepCopy() *ParamSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamSpec.

func (in *ParamSpec) DeepCopyInto(out *ParamSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetDefaults set the default type

ValidateObjectType checks that object type parameter does not miss the definition of `properties` section and the type of a PropertySpec is allowed. (Currently, only string is allowed)

ValidateType checks that the type of a ParamSpec is allowed and its default value matches that type

type ParamSpecs []ParamSpec

ParamSpecs is a list of ParamSpec

func (in ParamSpecs) DeepCopy() ParamSpecs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamSpecs.

func (in ParamSpecs) DeepCopyInto(out *ParamSpecs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ps ParamSpecs) ExtractDefaultParamArrayLengths() map[string]int

ExtractDefaultParamArrayLengths extract and return the lengths of all array param defaults Example of returned value: {"a-array-params": 2,"b-array-params": 2 }

ParamType indicates the type of an input parameter; Used to distinguish between a single string and an array of strings.

const ( ParamTypeString ParamType = “string” ParamTypeArray ParamType = “array” ParamTypeObject ParamType = “object” )

Valid ParamTypes:

ParamValue is a type that can hold a single string or string array. Used in JSON unmarshalling so that a single JSON field can accept either an individual string or an array of strings.

NewObject creates an ParamValues of type ParamTypeObject using the provided key-value pairs

NewStructuredValues creates an ParamValues of type ParamTypeString or ParamTypeArray, based on how many inputs are given (>1 input will create an array, not string).

ApplyReplacements applyes replacements for ParamValues type

func (in *ParamValue) DeepCopy() *ParamValue

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamValue.

func (in *ParamValue) DeepCopyInto(out *ParamValue)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

MarshalJSON implements the json.Marshaller interface.

func (paramValues *ParamValue) UnmarshalJSON(value []byte) error

UnmarshalJSON implements the json.Unmarshaller interface.

Params is a list of Param

func (in Params) DeepCopy() Params

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Params.

func (in Params) DeepCopyInto(out *Params)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ExtractNames returns a set of unique names

func (ps Params) ExtractParamArrayLengths() map[string]int

ExtractParamArrayLengths extract and return the lengths of all array params Example of returned value: {"a-array-params": 2,"b-array-params": 2 }

ReplaceVariables applies string, array and object replacements to variables in Params

Pipeline describes a list of Tasks to execute. It expresses how outputs of tasks feed into inputs of subsequent tasks. +k8s:openapi-gen=true

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (p *Pipeline) Copy() PipelineObject

Copy returns a deep copy of the Pipeline, implementing PipelineObject

func (in *Pipeline) DeepCopy() *Pipeline

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.

func (in *Pipeline) DeepCopyInto(out *Pipeline)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

GetGroupVersionKind implements kmeta.OwnerRefable.

PipelineMetadata returns the Pipeline’s ObjectMeta, implementing PipelineObject

func (p *Pipeline) PipelineSpec() PipelineSpec

PipelineSpec returns the Pipeline’s Spec, implementing PipelineObject

SetDefaults sets default values on the Pipeline’s Spec

SupportedVerbs returns the operations that validation should be called for

Validate checks that the Pipeline structure is valid but does not validate that any references resources exist, that is done at run time.

type PipelineDeclaredResource struct {

Name string \`json:"name"\`

Type PipelineResourceType \`json:"type"\`



Optional bool \`json:"optional,omitempty"\`

}

PipelineDeclaredResource is used by a Pipeline to declare the types of the PipelineResources that it will required to run and names which can be used to refer to these PipelineResources in PipelineTaskResourceBindings.

Deprecated: Unused, preserved only for backwards compatibility

func (in *PipelineDeclaredResource) DeepCopy() *PipelineDeclaredResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineDeclaredResource.

func (in *PipelineDeclaredResource) DeepCopyInto(out *PipelineDeclaredResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

PipelineList contains a list of Pipeline

func (in *PipelineList) DeepCopy() *PipelineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.

func (in *PipelineList) DeepCopyInto(out *PipelineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

PipelineObject is implemented by Pipeline

type PipelineRef struct {

Name string \`json:"name,omitempty"\`


APIVersion string \`json:"apiVersion,omitempty"\`




Bundle string \`json:"bundle,omitempty"\`





ResolverRef \`json:",omitempty"\`

}

PipelineRef can be used to refer to a specific instance of a Pipeline.

func (in *PipelineRef) DeepCopy() *PipelineRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRef.

func (in *PipelineRef) DeepCopyInto(out *PipelineRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Validate ensures that a supplied PipelineRef field is populated correctly. No errors are returned for a nil PipelineRef.

type PipelineResourceBinding struct {

Name string \`json:"name,omitempty"\`



ResourceRef \*PipelineResourceRef \`json:"resourceRef,omitempty"\`




ResourceSpec \*resource.PipelineResourceSpec \`json:"resourceSpec,omitempty"\`

}

PipelineResourceBinding connects a reference to an instance of a PipelineResource with a PipelineResource dependency that the Pipeline has declared

Deprecated: Unused, preserved only for backwards compatibility

func (in *PipelineResourceBinding) DeepCopy() *PipelineResourceBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceBinding.

func (in *PipelineResourceBinding) DeepCopyInto(out *PipelineResourceBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

PipelineResourceInterface interface to be implemented by different PipelineResource types

Deprecated: Unused, preserved only for backwards compatibility

type PipelineResourceRef struct {

Name string \`json:"name,omitempty"\`


APIVersion string \`json:"apiVersion,omitempty"\`

}

PipelineResourceRef can be used to refer to a specific instance of a Resource

Deprecated: Unused, preserved only for backwards compatibility

func (in *PipelineResourceRef) DeepCopy() *PipelineResourceRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceRef.

func (in *PipelineResourceRef) DeepCopyInto(out *PipelineResourceRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

PipelineResourceResult has been deprecated with the migration of PipelineResources Deprecated: Use RunResult instead

PipelineResourceType represents the type of endpoint the pipelineResource is, so that the controller will know this pipelineResource should be fetched and optionally what additional metatdata should be provided for it.

Deprecated: Unused, preserved only for backwards compatibility

type PipelineResult struct {

Name string \`json:"name"\`




Type ResultsType \`json:"type,omitempty"\`



Description string \`json:"description"\`


Value ResultValue \`json:"value"\`

}

PipelineResult used to describe the results of a pipeline

func (in *PipelineResult) DeepCopy() *PipelineResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResult.

func (in *PipelineResult) DeepCopyInto(out *PipelineResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRun struct { metav1.TypeMeta `json:",inline"`

metav1.ObjectMeta \`json:"metadata,omitempty"\`


Spec PipelineRunSpec \`json:"spec,omitempty"\`

Status PipelineRunStatus \`json:"status,omitempty"\`

}

PipelineRun represents a single execution of a Pipeline. PipelineRuns are how the graph of Tasks declared in a Pipeline are executed; they specify inputs to Pipelines such as parameter values and capture operational aspects of the Tasks execution such as service account and tolerations. Creating a PipelineRun creates TaskRuns for Tasks in the referenced Pipeline.

+k8s:openapi-gen=true

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *PipelineRun) DeepCopy() *PipelineRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRun.

func (in *PipelineRun) DeepCopyInto(out *PipelineRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

FinallyTimeout returns the finally timeout for the PipelineRun, if set, or the finally timeout computed from the Pipeline and Tasks timeouts, if those are set.

GetGroupVersionKind implements kmeta.OwnerRefable.

GetName Returns the name of the PipelineRun

GetNamespacedName returns a k8s namespaced name that identifies this PipelineRun

GetStatusCondition returns the task run status as a ConditionAccessor

func (pr *PipelineRun) GetTaskRunSpec(pipelineTaskName string) PipelineTaskRunSpec

GetTaskRunSpec returns the task specific spec for a given PipelineTask if configured, otherwise it returns the PipelineRun’s default.

HasFinallyTimedOut returns true if a pipelinerun has exceeded its spec.Timeouts.Finally, based on status.FinallyStartTime

func (pr *PipelineRun) HasStarted() bool

HasStarted function check whether pipelinerun has valid start time set in its status

HasTimedOut returns true if a pipelinerun has exceeded its spec.Timeout based on its status.Timeout

HasTimedOutForALongTime returns true if a pipelinerun has exceeed its spec.Timeout based its status.StartTime by a large margin

func (pr *PipelineRun) HasVolumeClaimTemplate() bool

HasVolumeClaimTemplate returns true if PipelineRun contains volumeClaimTemplates that is used for creating PersistentVolumeClaims with an OwnerReference for each run

HaveTasksTimedOut returns true if a pipelinerun has exceeded its spec.Timeouts.Tasks

func (pr *PipelineRun) IsCancelled() bool

IsCancelled returns true if the PipelineRun’s spec status is set to Cancelled state

IsDone returns true if the PipelineRun’s status indicates that it is done.

func (pr *PipelineRun) IsGracefullyCancelled() bool

IsGracefullyCancelled returns true if the PipelineRun’s spec status is set to CancelledRunFinally state

func (pr *PipelineRun) IsGracefullyStopped() bool

IsGracefullyStopped returns true if the PipelineRun’s spec status is set to StoppedRunFinally state

func (pr *PipelineRun) IsPending() bool

IsPending returns true if the PipelineRun’s spec status is set to Pending state

func (pr *PipelineRun) IsTimeoutConditionSet() bool

IsTimeoutConditionSet returns true when the pipelinerun has the pipelinerun timed out reason

PipelineTimeout returns the applicable timeout for the PipelineRun

SetDefaults implements apis.Defaultable

SetTimeoutCondition sets the status of the PipelineRun to timed out.

SupportedVerbs returns the operations that validation should be called for

TasksTimeout returns the tasks timeout for the PipelineRun, if set, or the tasks timeout computed from the Pipeline and Finally timeouts, if those are set.

PipelineRunList contains a list of PipelineRun

func (in *PipelineRunList) DeepCopy() *PipelineRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunList.

func (in *PipelineRunList) DeepCopyInto(out *PipelineRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

PipelineRunReason represents a reason for the pipeline run “Succeeded” condition

const (

PipelineRunReasonStarted PipelineRunReason = "Started"

PipelineRunReasonRunning PipelineRunReason = "Running"

PipelineRunReasonSuccessful PipelineRunReason = "Succeeded"

PipelineRunReasonCompleted PipelineRunReason = "Completed"

PipelineRunReasonFailed PipelineRunReason = "Failed"



PipelineRunReasonCancelled PipelineRunReason = "Cancelled"

PipelineRunReasonPending PipelineRunReason = "PipelineRunPending"

PipelineRunReasonTimedOut PipelineRunReason = "PipelineRunTimeout"


PipelineRunReasonStopping PipelineRunReason = "PipelineRunStopping"


PipelineRunReasonCancelledRunningFinally PipelineRunReason = "CancelledRunningFinally"


PipelineRunReasonStoppedRunningFinally PipelineRunReason = "StoppedRunningFinally"

)

type PipelineRunResult struct {

Name string \`json:"name"\`


Value ResultValue \`json:"value"\`

}

PipelineRunResult used to describe the results of a pipeline

func (in *PipelineRunResult) DeepCopy() *PipelineRunResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunResult.

func (in *PipelineRunResult) DeepCopyInto(out *PipelineRunResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRunRunStatus struct {

PipelineTaskName string \`json:"pipelineTaskName,omitempty"\`


Status \*CustomRunStatus \`json:"status,omitempty"\`



WhenExpressions \[\]WhenExpression \`json:"whenExpressions,omitempty"\`

}

PipelineRunRunStatus contains the name of the PipelineTask for this CustomRun or Run and the CustomRun or Run’s Status

func (in *PipelineRunRunStatus) DeepCopy() *PipelineRunRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunRunStatus.

func (in *PipelineRunRunStatus) DeepCopyInto(out *PipelineRunRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRunSpec struct {

PipelineRef \*PipelineRef \`json:"pipelineRef,omitempty"\`

PipelineSpec \*PipelineSpec \`json:"pipelineSpec,omitempty"\`






Resources \[\]PipelineResourceBinding \`json:"resources,omitempty"\`


Params Params \`json:"params,omitempty"\`

ServiceAccountName string \`json:"serviceAccountName,omitempty"\`



Status PipelineRunSpecStatus \`json:"status,omitempty"\`





Timeouts \*TimeoutFields \`json:"timeouts,omitempty"\`








Timeout \*metav1.Duration \`json:"timeout,omitempty"\`

PodTemplate \*pod.PodTemplate \`json:"podTemplate,omitempty"\`




Workspaces \[\]WorkspaceBinding \`json:"workspaces,omitempty"\`



TaskRunSpecs \[\]PipelineTaskRunSpec \`json:"taskRunSpecs,omitempty"\`

}

PipelineRunSpec defines the desired state of PipelineRun

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *PipelineRunSpec) DeepCopy() *PipelineRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunSpec.

func (in *PipelineRunSpec) DeepCopyInto(out *PipelineRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetDefaults implements apis.Defaultable

Validate pipelinerun spec

type PipelineRunSpecStatus string

PipelineRunSpecStatus defines the pipelinerun spec status the user can provide

type PipelineRunStatus struct { duckv1.Status `json:",inline"`

PipelineRunStatusFields \`json:",inline"\`

}

PipelineRunStatus defines the observed state of PipelineRun

func (in *PipelineRunStatus) DeepCopy() *PipelineRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunStatus.

func (in *PipelineRunStatus) DeepCopyInto(out *PipelineRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

GetCondition returns the Condition matching the given type.

InitializeConditions will set all conditions in pipelineRunCondSet to unknown for the PipelineRun and set the started time to the current time

func (pr *PipelineRunStatus) MarkFailed(reason, messageFormat string, messageA …interface{})

MarkFailed changes the Succeeded condition to False with the provided reason and message.

func (pr *PipelineRunStatus) MarkRunning(reason, messageFormat string, messageA …interface{})

MarkRunning changes the Succeeded condition to Unknown with the provided reason and message.

func (pr *PipelineRunStatus) MarkSucceeded(reason, messageFormat string, messageA …interface{})

MarkSucceeded changes the Succeeded condition to True with the provided reason and message.

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type PipelineRunStatusFields struct {

StartTime \*metav1.Time \`json:"startTime,omitempty"\`


CompletionTime \*metav1.Time \`json:"completionTime,omitempty"\`







TaskRuns map\[string\]\*PipelineRunTaskRunStatus \`json:"taskRuns,omitempty"\`







Runs map\[string\]\*PipelineRunRunStatus \`json:"runs,omitempty"\`




PipelineResults \[\]PipelineRunResult \`json:"pipelineResults,omitempty"\`


PipelineSpec \*PipelineSpec \`json:"pipelineSpec,omitempty"\`




SkippedTasks \[\]SkippedTask \`json:"skippedTasks,omitempty"\`




ChildReferences \[\]ChildStatusReference \`json:"childReferences,omitempty"\`



FinallyStartTime \*metav1.Time \`json:"finallyStartTime,omitempty"\`



Provenance \*Provenance \`json:"provenance,omitempty"\`


SpanContext map\[string\]string \`json:"spanContext,omitempty"\`

}

PipelineRunStatusFields holds the fields of PipelineRunStatus’ status. This is defined separately and inlined so that other types can readily consume these fields via duck typing.

func (in *PipelineRunStatusFields) DeepCopy() *PipelineRunStatusFields

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunStatusFields.

func (in *PipelineRunStatusFields) DeepCopyInto(out *PipelineRunStatusFields)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRunTaskRunStatus struct {

PipelineTaskName string \`json:"pipelineTaskName,omitempty"\`


Status \*TaskRunStatus \`json:"status,omitempty"\`



WhenExpressions \[\]WhenExpression \`json:"whenExpressions,omitempty"\`

}

PipelineRunTaskRunStatus contains the name of the PipelineTask for this TaskRun and the TaskRun’s Status

func (in *PipelineRunTaskRunStatus) DeepCopy() *PipelineRunTaskRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunTaskRunStatus.

func (in *PipelineRunTaskRunStatus) DeepCopyInto(out *PipelineRunTaskRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineSpec struct {

DisplayName string \`json:"displayName,omitempty"\`



Description string \`json:"description,omitempty"\`


Resources \[\]PipelineDeclaredResource \`json:"resources,omitempty"\`


Tasks \[\]PipelineTask \`json:"tasks,omitempty"\`



Params ParamSpecs \`json:"params,omitempty"\`




Workspaces \[\]PipelineWorkspaceDeclaration \`json:"workspaces,omitempty"\`



Results \[\]PipelineResult \`json:"results,omitempty"\`




Finally \[\]PipelineTask \`json:"finally,omitempty"\`

}

PipelineSpec defines the desired state of Pipeline.

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *PipelineSpec) DeepCopy() *PipelineSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.

func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ps *PipelineSpec) GetIndexingReferencesToArrayParams() sets.String

GetIndexingReferencesToArrayParams returns all strings referencing indices of PipelineRun array parameters from parameters, workspaces, and when expressions defined in the Pipeline’s Tasks and Finally Tasks. For example, if a Task in the Pipeline has a parameter with a value "$(params.array-param-name[1])", this would be one of the strings returned.

SetDefaults sets default values for the PipelineSpec’s Params, Tasks, and Finally

Validate checks that taskNames in the Pipeline are valid and that the graph of Tasks expressed in the Pipeline makes sense.

type PipelineTask struct {

Name string \`json:"name,omitempty"\`




DisplayName string \`json:"displayName,omitempty"\`




Description string \`json:"description,omitempty"\`



TaskRef \*TaskRef \`json:"taskRef,omitempty"\`



TaskSpec \*EmbeddedTask \`json:"taskSpec,omitempty"\`



WhenExpressions WhenExpressions \`json:"when,omitempty"\`



Retries int \`json:"retries,omitempty"\`





RunAfter \[\]string \`json:"runAfter,omitempty"\`



Resources \*PipelineTaskResources \`json:"resources,omitempty"\`




Params Params \`json:"params,omitempty"\`



Matrix \*Matrix \`json:"matrix,omitempty"\`





Workspaces \[\]WorkspacePipelineTaskBinding \`json:"workspaces,omitempty"\`




Timeout \*metav1.Duration \`json:"timeout,omitempty"\`

}

PipelineTask defines a task in a Pipeline, passing inputs from both Params and from the output of previous tasks.

func (in *PipelineTask) DeepCopy() *PipelineTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTask.

func (in *PipelineTask) DeepCopyInto(out *PipelineTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Deps returns all other PipelineTask dependencies of this PipelineTask, based on resource usage or ordering

HashKey is the name of the PipelineTask, and is used as the key for this PipelineTask in the DAG

func (pt *PipelineTask) IsMatrixed() bool

IsMatrixed return whether pipeline task is matrixed

SetDefaults sets default values for a PipelineTask

func (pt *PipelineTask) TaskSpecMetadata() PipelineTaskMetadata

TaskSpecMetadata returns the metadata of the PipelineTask’s EmbeddedTask spec.

Validate classifies whether a task is a custom task, bundle, or a regular task(dag/final) calls the validation routine based on the type of the task

ValidateName checks whether the PipelineTask’s name is a valid DNS label

type PipelineTaskInputResource struct {

Name string \`json:"name"\`

Resource string \`json:"resource"\`




From \[\]string \`json:"from,omitempty"\`

}

PipelineTaskInputResource maps the name of a declared PipelineResource input dependency in a Task to the resource in the Pipeline’s DeclaredPipelineResources that should be used. This input may come from a previous task.

Deprecated: Unused, preserved only for backwards compatibility

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskInputResource.

func (in *PipelineTaskInputResource) DeepCopyInto(out *PipelineTaskInputResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskList []PipelineTask

PipelineTaskList is a list of PipelineTasks

func (in PipelineTaskList) DeepCopy() PipelineTaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskList.

func (in PipelineTaskList) DeepCopyInto(out *PipelineTaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Deps returns a map with key as name of a pipelineTask and value as a list of its dependencies

Items returns a slice of all tasks in the PipelineTaskList, converted to dag.Tasks

Names returns a set of pipeline task names from the given list of pipeline tasks

Validate a list of pipeline tasks including custom task and bundles

type PipelineTaskMetadata struct {

Labels map\[string\]string \`json:"labels,omitempty"\`


Annotations map\[string\]string \`json:"annotations,omitempty"\`

}

PipelineTaskMetadata contains the labels or annotations for an EmbeddedTask

func (in *PipelineTaskMetadata) DeepCopy() *PipelineTaskMetadata

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskMetadata.

func (in *PipelineTaskMetadata) DeepCopyInto(out *PipelineTaskMetadata)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskOutputResource struct {

Name string \`json:"name"\`

Resource string \`json:"resource"\`

}

PipelineTaskOutputResource maps the name of a declared PipelineResource output dependency in a Task to the resource in the Pipeline’s DeclaredPipelineResources that should be used.

Deprecated: Unused, preserved only for backwards compatibility

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskOutputResource.

func (in *PipelineTaskOutputResource) DeepCopyInto(out *PipelineTaskOutputResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskParam struct { Name string `json:"name"` Value string `json:"value"` }

PipelineTaskParam is used to provide arbitrary string parameters to a Task.

func (in *PipelineTaskParam) DeepCopy() *PipelineTaskParam

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskParam.

func (in *PipelineTaskParam) DeepCopyInto(out *PipelineTaskParam)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskResources struct {

Inputs \[\]PipelineTaskInputResource \`json:"inputs,omitempty"\`



Outputs \[\]PipelineTaskOutputResource \`json:"outputs,omitempty"\`

}

PipelineTaskResources allows a Pipeline to declare how its DeclaredPipelineResources should be provided to a Task as its inputs and outputs.

Deprecated: Unused, preserved only for backwards compatibility

func (in *PipelineTaskResources) DeepCopy() *PipelineTaskResources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskResources.

func (in *PipelineTaskResources) DeepCopyInto(out *PipelineTaskResources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskRun struct { Name string `json:"name,omitempty"` }

PipelineTaskRun reports the results of running a step in the Task. Each task has the potential to succeed or fail (based on the exit code) and produces logs.

func (in *PipelineTaskRun) DeepCopy() *PipelineTaskRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskRun.

func (in *PipelineTaskRun) DeepCopyInto(out *PipelineTaskRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskRunSpec struct { PipelineTaskName string `json:"pipelineTaskName,omitempty"` TaskServiceAccountName string `json:"taskServiceAccountName,omitempty"` TaskPodTemplate *pod.PodTemplate `json:"taskPodTemplate,omitempty"`

StepOverrides \[\]TaskRunStepOverride \`json:"stepOverrides,omitempty"\`

SidecarOverrides \[\]TaskRunSidecarOverride \`json:"sidecarOverrides,omitempty"\`


Metadata \*PipelineTaskMetadata \`json:"metadata,omitempty"\`


ComputeResources \*corev1.ResourceRequirements \`json:"computeResources,omitempty"\`

}

PipelineTaskRunSpec can be used to configure specific specs for a concrete Task

func (in *PipelineTaskRunSpec) DeepCopy() *PipelineTaskRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskRunSpec.

func (in *PipelineTaskRunSpec) DeepCopyInto(out *PipelineTaskRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineWorkspaceDeclaration struct {

Name string \`json:"name"\`




Description string \`json:"description,omitempty"\`


Optional bool \`json:"optional,omitempty"\`

}

PipelineWorkspaceDeclaration creates a named slot in a Pipeline that a PipelineRun is expected to populate with a workspace binding.

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineWorkspaceDeclaration.

func (in *PipelineWorkspaceDeclaration) DeepCopyInto(out *PipelineWorkspaceDeclaration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PropertySpec struct { Type ParamType `json:"type,omitempty"` }

PropertySpec defines the struct for object keys

func (in *PropertySpec) DeepCopy() *PropertySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PropertySpec.

func (in *PropertySpec) DeepCopyInto(out *PropertySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Provenance struct {

ConfigSource \*ConfigSource \`json:"configSource,omitempty"\`


RefSource \*RefSource \`json:"refSource,omitempty"\`


FeatureFlags \*config.FeatureFlags \`json:"featureFlags,omitempty"\`

}

Provenance contains metadata about resources used in the TaskRun/PipelineRun such as the source from where a remote build definition was fetched. This field aims to carry minimum amoumt of metadata in *Run status so that Tekton Chains can capture them in the provenance.

func (in *Provenance) DeepCopy() *Provenance

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provenance.

func (in *Provenance) DeepCopyInto(out *Provenance)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RefSource struct {

URI string \`json:"uri,omitempty"\`



Digest map\[string\]string \`json:"digest,omitempty"\`




EntryPoint string \`json:"entryPoint,omitempty"\`

}

RefSource contains the information that can uniquely identify where a remote built definition came from i.e. Git repositories, Tekton Bundles in OCI registry and hub.

func (in *RefSource) DeepCopy() *RefSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RefSource.

func (in *RefSource) DeepCopyInto(out *RefSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ResolverName is the name of a resolver from which a resource can be requested.

type ResolverRef struct {

Resolver ResolverName \`json:"resolver,omitempty"\`






Params Params \`json:"params,omitempty"\`

}

ResolverRef can be used to refer to a Pipeline or Task in a remote location like a git repo.

func (in *ResolverRef) DeepCopy() *ResolverRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResolverRef.

func (in *ResolverRef) DeepCopyInto(out *ResolverRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ResourceDeclaration defines an input or output PipelineResource declared as a requirement by another type such as a Task or Condition. The Name field will be used to refer to these PipelineResources within the type’s definition, and when provided as an Input, the Name will be the path to the volume mounted containing this PipelineResource as an input (e.g. an input Resource named `workspace` will be mounted at `/workspace`).

Deprecated: Unused, preserved only for backwards compatibility

ResourceParam declares a string value to use for the parameter called Name, and is used in the specific context of PipelineResources.

Deprecated: Unused, preserved only for backwards compatibility

type ResultRef struct { PipelineTask string `json:"pipelineTask"` Result string `json:"result"` ResultsIndex int `json:"resultsIndex"` Property string `json:"property"` }

ResultRef is a type that represents a reference to a task run result

func NewResultRefs(expressions []string) []*ResultRef

NewResultRefs extracts all ResultReferences from a param or a pipeline result. If the ResultReference can be extracted, they are returned. Expressions which are not results are ignored.

func PipelineTaskResultRefs(pt *PipelineTask) []*ResultRef

PipelineTaskResultRefs walks all the places a result reference can be used in a PipelineTask and returns a list of any references that are found.

func (in *ResultRef) DeepCopy() *ResultRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultRef.

func (in *ResultRef) DeepCopyInto(out *ResultRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ResultType of PipelineResourceResult has been deprecated with the migration of PipelineResources Deprecated: v1beta1.ResultType is only kept for backward compatibility

type ResultValue = ParamValue

ResultValue is a type alias of ParamValue

ResultsType indicates the type of a result; Used to distinguish between a single string and an array of strings. Note that there is ResultType used to find out whether a RunResult is from a task result or not, which is different from this ResultsType.

const ( ResultsTypeString ResultsType = “string” ResultsTypeArray ResultsType = “array” ResultsTypeObject ResultsType = “object” )

Valid ResultsType:

RunObject is implemented by CustomRun and Run

RunResult is used to write key/value pairs to TaskRun pod termination messages. It has been migrated to the result package and kept for backward compatibility

type Sidecar struct {

Name string \`json:"name" protobuf:"bytes,1,opt,name=name"\`



Image string \`json:"image,omitempty" protobuf:"bytes,2,opt,name=image"\`










Command \[\]string \`json:"command,omitempty" protobuf:"bytes,3,rep,name=command"\`










Args \[\]string \`json:"args,omitempty" protobuf:"bytes,4,rep,name=args"\`





WorkingDir string \`json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"\`













Ports \[\]corev1.ContainerPort \`json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"\`








EnvFrom \[\]corev1.EnvFromSource \`json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"\`






Env \[\]corev1.EnvVar \`json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"\`




Resources corev1.ResourceRequirements \`json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"\`






VolumeMounts \[\]corev1.VolumeMount \`json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"\`





VolumeDevices \[\]corev1.VolumeDevice \`json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"\`





LivenessProbe \*corev1.Probe \`json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"\`





ReadinessProbe \*corev1.Probe \`json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"\`








StartupProbe \*corev1.Probe \`json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"\`



Lifecycle \*corev1.Lifecycle \`json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"\`








TerminationMessagePath string \`json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"\`








TerminationMessagePolicy corev1.TerminationMessagePolicy \`\` 






ImagePullPolicy corev1.PullPolicy \`json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"\`




SecurityContext \*corev1.SecurityContext \`json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"\`





Stdin bool \`json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"\`








StdinOnce bool \`json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"\`



TTY bool \`json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"\`





Script string \`json:"script,omitempty"\`










Workspaces \[\]WorkspaceUsage \`json:"workspaces,omitempty"\`

}

Sidecar has nearly the same data structure as Step but does not have the ability to timeout.

func MergeSidecarsWithOverrides(sidecars []Sidecar, overrides []TaskRunSidecarOverride) ([]Sidecar, error)

MergeSidecarsWithOverrides takes a possibly nil list of overrides and a list of sidecars, merging each of the sidecars with the overrides’ resource requirements, if it’s not nil, and returning the resulting list.

func (in *Sidecar) DeepCopy() *Sidecar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar.

func (in *Sidecar) DeepCopyInto(out *Sidecar)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetContainerFields sets the fields of the Sidecar to the values of the corresponding fields in the Container

ToK8sContainer converts the Sidecar to a Kubernetes Container struct

type SidecarState struct { corev1.ContainerState `json:",inline"` Name string `json:"name,omitempty"` ContainerName string `json:"container,omitempty"` ImageID string `json:"imageID,omitempty"` }

SidecarState reports the results of running a sidecar in a Task.

func (in *SidecarState) DeepCopy() *SidecarState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarState.

func (in *SidecarState) DeepCopyInto(out *SidecarState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SkippedTask struct {

Name string \`json:"name"\`

Reason SkippingReason \`json:"reason"\`



WhenExpressions \[\]WhenExpression \`json:"whenExpressions,omitempty"\`

}

SkippedTask is used to describe the Tasks that were skipped due to their When Expressions evaluating to False. This is a struct because we are looking into including more details about the When Expressions that caused this Task to be skipped.

func (in *SkippedTask) DeepCopy() *SkippedTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SkippedTask.

func (in *SkippedTask) DeepCopyInto(out *SkippedTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SkippingReason explains why a PipelineTask was skipped.

const (

WhenExpressionsSkip SkippingReason = "When Expressions evaluated to false"

ParentTasksSkip SkippingReason = "Parent Tasks were skipped"

StoppingSkip SkippingReason = "PipelineRun was stopping"

GracefullyCancelledSkip SkippingReason = "PipelineRun was gracefully cancelled"

GracefullyStoppedSkip SkippingReason = "PipelineRun was gracefully stopped"

MissingResultsSkip SkippingReason = "Results were missing"

PipelineTimedOutSkip SkippingReason = "PipelineRun timeout has been reached"

TasksTimedOutSkip SkippingReason = "PipelineRun Tasks timeout has been reached"

FinallyTimedOutSkip SkippingReason = "PipelineRun Finally timeout has been reached"

EmptyArrayInMatrixParams SkippingReason = "Matrix Parameters have an empty array"

None SkippingReason = "None"

)

type Step struct {

Name string \`json:"name" protobuf:"bytes,1,opt,name=name"\`



Image string \`json:"image,omitempty" protobuf:"bytes,2,opt,name=image"\`










Command \[\]string \`json:"command,omitempty" protobuf:"bytes,3,rep,name=command"\`










Args \[\]string \`json:"args,omitempty" protobuf:"bytes,4,rep,name=args"\`





WorkingDir string \`json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"\`
















DeprecatedPorts \[\]corev1.ContainerPort \`json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"\`








EnvFrom \[\]corev1.EnvFromSource \`json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"\`






Env \[\]corev1.EnvVar \`json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"\`




Resources corev1.ResourceRequirements \`json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"\`






VolumeMounts \[\]corev1.VolumeMount \`json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"\`





VolumeDevices \[\]corev1.VolumeDevice \`json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"\`








DeprecatedLivenessProbe \*corev1.Probe \`json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"\`








DeprecatedReadinessProbe \*corev1.Probe \`json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"\`












DeprecatedStartupProbe \*corev1.Probe \`json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"\`






DeprecatedLifecycle \*corev1.Lifecycle \`json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"\`


DeprecatedTerminationMessagePath string \`json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"\`


DeprecatedTerminationMessagePolicy corev1.TerminationMessagePolicy \`\` 






ImagePullPolicy corev1.PullPolicy \`json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"\`




SecurityContext \*corev1.SecurityContext \`json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"\`








DeprecatedStdin bool \`json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"\`











DeprecatedStdinOnce bool \`json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"\`






DeprecatedTTY bool \`json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"\`





Script string \`json:"script,omitempty"\`




Timeout \*metav1.Duration \`json:"timeout,omitempty"\`










Workspaces \[\]WorkspaceUsage \`json:"workspaces,omitempty"\`



OnError OnErrorType \`json:"onError,omitempty"\`



StdoutConfig \*StepOutputConfig \`json:"stdoutConfig,omitempty"\`


StderrConfig \*StepOutputConfig \`json:"stderrConfig,omitempty"\`

}

Step runs a subcomponent of a Task

func MergeStepsWithOverrides(steps []Step, overrides []TaskRunStepOverride) ([]Step, error)

MergeStepsWithOverrides takes a possibly nil list of overrides and a list of steps, merging each of the steps with the overrides’ resource requirements, if it’s not nil, and returning the resulting list.

func MergeStepsWithStepTemplate(template *StepTemplate, steps []Step) ([]Step, error)

MergeStepsWithStepTemplate takes a possibly nil container template and a list of steps, merging each of the steps with the container template, if it’s not nil, and returning the resulting list.

func (in *Step) DeepCopy() *Step

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.

func (in *Step) DeepCopyInto(out *Step)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetContainerFields sets the fields of the Step to the values of the corresponding fields in the Container

ToK8sContainer converts the Step to a Kubernetes Container struct

type StepOutputConfig struct {

Path string \`json:"path,omitempty"\`

}

StepOutputConfig stores configuration for a step output stream.

func (in *StepOutputConfig) DeepCopy() *StepOutputConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepOutputConfig.

func (in *StepOutputConfig) DeepCopyInto(out *StepOutputConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StepState struct { corev1.ContainerState `json:",inline"` Name string `json:"name,omitempty"` ContainerName string `json:"container,omitempty"` ImageID string `json:"imageID,omitempty"` }

StepState reports the results of running a step in a Task.

func (in *StepState) DeepCopy() *StepState

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepState.

func (in *StepState) DeepCopyInto(out *StepState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StepTemplate struct {

DeprecatedName string \`json:"name" protobuf:"bytes,1,opt,name=name"\`





Image string \`json:"image,omitempty" protobuf:"bytes,2,opt,name=image"\`










Command \[\]string \`json:"command,omitempty" protobuf:"bytes,3,rep,name=command"\`










Args \[\]string \`json:"args,omitempty" protobuf:"bytes,4,rep,name=args"\`





WorkingDir string \`json:"workingDir,omitempty" protobuf:"bytes,5,opt,name=workingDir"\`
















DeprecatedPorts \[\]corev1.ContainerPort \`json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"\`








EnvFrom \[\]corev1.EnvFromSource \`json:"envFrom,omitempty" protobuf:"bytes,19,rep,name=envFrom"\`






Env \[\]corev1.EnvVar \`json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,7,rep,name=env"\`




Resources corev1.ResourceRequirements \`json:"resources,omitempty" protobuf:"bytes,8,opt,name=resources"\`






VolumeMounts \[\]corev1.VolumeMount \`json:"volumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath" protobuf:"bytes,9,rep,name=volumeMounts"\`





VolumeDevices \[\]corev1.VolumeDevice \`json:"volumeDevices,omitempty" patchStrategy:"merge" patchMergeKey:"devicePath" protobuf:"bytes,21,rep,name=volumeDevices"\`








DeprecatedLivenessProbe \*corev1.Probe \`json:"livenessProbe,omitempty" protobuf:"bytes,10,opt,name=livenessProbe"\`








DeprecatedReadinessProbe \*corev1.Probe \`json:"readinessProbe,omitempty" protobuf:"bytes,11,opt,name=readinessProbe"\`











DeprecatedStartupProbe \*corev1.Probe \`json:"startupProbe,omitempty" protobuf:"bytes,22,opt,name=startupProbe"\`






DeprecatedLifecycle \*corev1.Lifecycle \`json:"lifecycle,omitempty" protobuf:"bytes,12,opt,name=lifecycle"\`


DeprecatedTerminationMessagePath string \`json:"terminationMessagePath,omitempty" protobuf:"bytes,13,opt,name=terminationMessagePath"\`


DeprecatedTerminationMessagePolicy corev1.TerminationMessagePolicy \`\` 






ImagePullPolicy corev1.PullPolicy \`json:"imagePullPolicy,omitempty" protobuf:"bytes,14,opt,name=imagePullPolicy,casttype=PullPolicy"\`




SecurityContext \*corev1.SecurityContext \`json:"securityContext,omitempty" protobuf:"bytes,15,opt,name=securityContext"\`








DeprecatedStdin bool \`json:"stdin,omitempty" protobuf:"varint,16,opt,name=stdin"\`











DeprecatedStdinOnce bool \`json:"stdinOnce,omitempty" protobuf:"varint,17,opt,name=stdinOnce"\`






DeprecatedTTY bool \`json:"tty,omitempty" protobuf:"varint,18,opt,name=tty"\`

}

StepTemplate is a template for a Step

func (in *StepTemplate) DeepCopy() *StepTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepTemplate.

func (in *StepTemplate) DeepCopyInto(out *StepTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetContainerFields sets the fields of the Step to the values of the corresponding fields in the Container

ToK8sContainer converts the StepTemplate to a Kubernetes Container struct

Task represents a collection of sequential steps that are run as part of a Pipeline using a set of inputs and producing a set of outputs. Tasks execute when TaskRuns are created that provide the input parameters and resources and output resources the Task requires.

+k8s:openapi-gen=true

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (t *Task) Copy() TaskObject

Copy returns a deep copy of the task

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

GetGroupVersionKind implements kmeta.OwnerRefable.

SetDefaults implements apis.Defaultable

SupportedVerbs returns the operations that validation should be called for

TaskMetadata returns the task’s ObjectMeta

func (t *Task) TaskSpec() TaskSpec

TaskSpec returns the task’s spec

Validate implements apis.Validatable

TaskKind defines the type of Task used by the pipeline.

const (

NamespacedTaskKind TaskKind = "Task"

ClusterTaskKind TaskKind = "ClusterTask"

)

TaskList contains a list of Task +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (in *TaskList) DeepCopy() *TaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TaskModifier interface { GetStepsToPrepend() []Step GetStepsToAppend() []Step GetVolumes() []v1.Volume }

TaskModifier is an interface to be implemented by different PipelineResources

Deprecated: Unused, preserved only for backwards compatibility

TaskObject is implemented by Task and ClusterTask

type TaskRef struct {

Name string \`json:"name,omitempty"\`




Kind TaskKind \`json:"kind,omitempty"\`



APIVersion string \`json:"apiVersion,omitempty"\`




Bundle string \`json:"bundle,omitempty"\`





ResolverRef \`json:",omitempty"\`

}

TaskRef can be used to refer to a specific instance of a task.

ConvertFrom converts v1beta1 TaskRef from v1 TaskRef

func (in *TaskRef) DeepCopy() *TaskRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRef.

func (in *TaskRef) DeepCopyInto(out *TaskRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (tr *TaskRef) IsCustomTask() bool

IsCustomTask checks whether the reference is to a Custom Task

Validate ensures that a supplied TaskRef field is populated correctly. No errors are returned for a nil TaskRef.

type TaskResource struct { ResourceDeclaration `json:",inline"` }

TaskResource defines an input or output Resource declared as a requirement by a Task. The Name field will be used to refer to these Resources within the Task definition, and when provided as an Input, the Name will be the path to the volume mounted containing this Resource as an input (e.g. an input Resource named `workspace` will be mounted at `/workspace`).

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskResource) DeepCopy() *TaskResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResource.

func (in *TaskResource) DeepCopyInto(out *TaskResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskResourceBinding struct { PipelineResourceBinding `json:",inline"`

Paths \[\]string \`json:"paths,omitempty"\`

}

TaskResourceBinding points to the PipelineResource that will be used for the Task input or output called Name.

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskResourceBinding) DeepCopy() *TaskResourceBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResourceBinding.

func (in *TaskResourceBinding) DeepCopyInto(out *TaskResourceBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskResources struct {

Inputs \[\]TaskResource \`json:"inputs,omitempty"\`



Outputs \[\]TaskResource \`json:"outputs,omitempty"\`

}

TaskResources allows a Pipeline to declare how its DeclaredPipelineResources should be provided to a Task as its inputs and outputs.

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskResources) DeepCopy() *TaskResources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResources.

func (in *TaskResources) DeepCopyInto(out *TaskResources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskResult struct {

Name string \`json:"name"\`




Type ResultsType \`json:"type,omitempty"\`



Properties map\[string\]PropertySpec \`json:"properties,omitempty"\`



Description string \`json:"description,omitempty"\`

}

TaskResult used to describe the results of a task

func (in *TaskResult) DeepCopy() *TaskResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResult.

func (in *TaskResult) DeepCopyInto(out *TaskResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetDefaults set the default type for TaskResult

Validate implements apis.Validatable

type TaskRun struct { metav1.TypeMeta `json:",inline"`

metav1.ObjectMeta \`json:"metadata,omitempty"\`


Spec TaskRunSpec \`json:"spec,omitempty"\`

Status TaskRunStatus \`json:"status,omitempty"\`

}

TaskRun represents a single execution of a Task. TaskRuns are how the steps specified in a Task are executed; they specify the parameters and resources used to run the steps in a Task.

+k8s:openapi-gen=true

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *TaskRun) DeepCopy() *TaskRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRun.

func (in *TaskRun) DeepCopyInto(out *TaskRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

GetGroupVersionKind implements kmeta.OwnerRefable.

GetNamespacedName returns a k8s namespaced name that identifies this TaskRun

func (tr *TaskRun) GetPipelineRunPVCName() string

GetPipelineRunPVCName for TaskRun gets pipelinerun

GetStatusCondition returns the task run status as a ConditionAccessor

GetTimeout returns the timeout for the TaskRun, or the default if not specified

func (tr *TaskRun) HasPipelineRunOwnerReference() bool

HasPipelineRunOwnerReference returns true of TaskRun has owner reference of type PipelineRun

func (tr *TaskRun) HasStarted() bool

HasStarted function check whether TaskRun has valid start time set in its status

HasTimedOut returns true if the TaskRun runtime is beyond the allowed timeout

func (tr *TaskRun) HasVolumeClaimTemplate() bool

HasVolumeClaimTemplate returns true if TaskRun contains volumeClaimTemplates that is used for creating PersistentVolumeClaims with an OwnerReference for each run

func (tr *TaskRun) IsCancelled() bool

IsCancelled returns true if the TaskRun’s spec status is set to Cancelled state

func (tr *TaskRun) IsDone() bool

IsDone returns true if the TaskRun’s status indicates that it is done.

func (tr *TaskRun) IsRetriable() bool

IsRetriable returns true if the TaskRun’s Retries is not exhausted.

func (tr *TaskRun) IsSuccessful() bool

IsSuccessful returns true if the TaskRun’s status indicates that it is done.

func (tr *TaskRun) IsTaskRunResultDone() bool

IsTaskRunResultDone returns true if the TaskRun’s results are available for verification

func (tr *TaskRun) IsTaskRunResultVerified() bool

IsTaskRunResultVerified returns true if the TaskRun’s results have been validated by spire.

SetDefaults implements apis.Defaultable

SupportedVerbs returns the operations that validation should be called for

type TaskRunConditionType string

TaskRunConditionType is an enum used to store TaskRun custom conditions such as one used in spire results verification

const (

TaskRunConditionResultsVerified TaskRunConditionType = "SignedResultsVerified"

)

type TaskRunDebug struct {

Breakpoint \[\]string \`json:"breakpoint,omitempty"\`

}

TaskRunDebug defines the breakpoint config for a particular TaskRun

func (in *TaskRunDebug) DeepCopy() *TaskRunDebug

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunDebug.

func (in *TaskRunDebug) DeepCopyInto(out *TaskRunDebug)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRunInputs struct {

Resources \[\]TaskResourceBinding \`json:"resources,omitempty"\`


Params \[\]Param \`json:"params,omitempty"\`

}

TaskRunInputs holds the input values that this task was invoked with.

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskRunInputs) DeepCopy() *TaskRunInputs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunInputs.

func (in *TaskRunInputs) DeepCopyInto(out *TaskRunInputs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

TaskRunList contains a list of TaskRun

func (in *TaskRunList) DeepCopy() *TaskRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunList.

func (in *TaskRunList) DeepCopyInto(out *TaskRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TaskRunOutputs struct {

Resources \[\]TaskResourceBinding \`json:"resources,omitempty"\`

}

TaskRunOutputs holds the output values that this task was invoked with.

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskRunOutputs) DeepCopy() *TaskRunOutputs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunOutputs.

func (in *TaskRunOutputs) DeepCopyInto(out *TaskRunOutputs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

TaskRunReason is an enum used to store all TaskRun reason for the Succeeded condition that are controlled by the TaskRun itself. Failure reasons that emerge from underlying resources are not included here

const (

TaskRunReasonStarted TaskRunReason = "Started"

TaskRunReasonRunning TaskRunReason = "Running"

TaskRunReasonSuccessful TaskRunReason = "Succeeded"

TaskRunReasonFailed TaskRunReason = "Failed"

TaskRunReasonToBeRetried TaskRunReason = "ToBeRetried"

TaskRunReasonCancelled TaskRunReason = "TaskRunCancelled"

TaskRunReasonTimedOut TaskRunReason = "TaskRunTimeout"


TaskRunReasonResolvingTaskRef = "ResolvingTaskRef"

TaskRunReasonImagePullFailed TaskRunReason = "TaskRunImagePullFailed"

TaskRunReasonResultsVerified TaskRunReason = "TaskRunResultsVerified"

TaskRunReasonsResultsVerificationFailed TaskRunReason = "TaskRunResultsVerificationFailed"

AwaitingTaskRunResults TaskRunReason = "AwaitingTaskRunResults"

TaskRunReasonResultLargerThanAllowedLimit TaskRunReason = "TaskRunResultLargerThanAllowedLimit"

TaskRunReasonStopSidecarFailed = "TaskRunStopSidecarFailed"

)

type TaskRunResources struct {

Inputs \[\]TaskResourceBinding \`json:"inputs,omitempty"\`


Outputs \[\]TaskResourceBinding \`json:"outputs,omitempty"\`

}

TaskRunResources allows a TaskRun to declare inputs and outputs TaskResourceBinding

Deprecated: Unused, preserved only for backwards compatibility

func (in *TaskRunResources) DeepCopy() *TaskRunResources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunResources.

func (in *TaskRunResources) DeepCopyInto(out *TaskRunResources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRunResult struct {

Name string \`json:"name"\`




Type ResultsType \`json:"type,omitempty"\`


Value ResultValue \`json:"value"\`

}

TaskRunResult used to describe the results of a task

func (in *TaskRunResult) DeepCopy() *TaskRunResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunResult.

func (in *TaskRunResult) DeepCopyInto(out *TaskRunResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

TaskRunSidecarOverride is used to override the values of a Sidecar in the corresponding Task.

func (in *TaskRunSidecarOverride) DeepCopy() *TaskRunSidecarOverride

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunSidecarOverride.

func (in *TaskRunSidecarOverride) DeepCopyInto(out *TaskRunSidecarOverride)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRunSpec struct {

Debug \*TaskRunDebug \`json:"debug,omitempty"\`


Params Params \`json:"params,omitempty"\`


Resources \*TaskRunResources \`json:"resources,omitempty"\`

ServiceAccountName string \`json:"serviceAccountName"\`


TaskRef \*TaskRef \`json:"taskRef,omitempty"\`

TaskSpec \*TaskSpec \`json:"taskSpec,omitempty"\`


Status TaskRunSpecStatus \`json:"status,omitempty"\`


StatusMessage TaskRunSpecStatusMessage \`json:"statusMessage,omitempty"\`


Retries int \`json:"retries,omitempty"\`



Timeout \*metav1.Duration \`json:"timeout,omitempty"\`

PodTemplate \*pod.PodTemplate \`json:"podTemplate,omitempty"\`



Workspaces \[\]WorkspaceBinding \`json:"workspaces,omitempty"\`






StepOverrides \[\]TaskRunStepOverride \`json:"stepOverrides,omitempty"\`






SidecarOverrides \[\]TaskRunSidecarOverride \`json:"sidecarOverrides,omitempty"\`

ComputeResources \*corev1.ResourceRequirements \`json:"computeResources,omitempty"\`

}

TaskRunSpec defines the desired state of TaskRun

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *TaskRunSpec) DeepCopy() *TaskRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunSpec.

func (in *TaskRunSpec) DeepCopyInto(out *TaskRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

SetDefaults implements apis.Defaultable

TaskRunSpecStatus defines the TaskRun spec status the user can provide

type TaskRunSpecStatusMessage string

TaskRunSpecStatusMessage defines human readable status messages for the TaskRun.

const (

TaskRunCancelledByPipelineMsg TaskRunSpecStatusMessage = "TaskRun cancelled as the PipelineRun it belongs to has been cancelled."

TaskRunCancelledByPipelineTimeoutMsg TaskRunSpecStatusMessage = "TaskRun cancelled as the PipelineRun it belongs to has timed out."

)

type TaskRunStatus struct { duckv1.Status `json:",inline"`

TaskRunStatusFields \`json:",inline"\`

}

TaskRunStatus defines the observed state of TaskRun

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *TaskRunStatus) DeepCopy() *TaskRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunStatus.

func (in *TaskRunStatus) DeepCopyInto(out *TaskRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

GetCondition returns the Condition matching the given type.

func (trs *TaskRunStatus) GetRunningReason() string

GetRunningReason returns the reason set to the “Succeeded” condition when the TaskRun starts running. This is used indicate that the resource could be validated is starting to perform its job.

func (trs *TaskRunStatus) GetStartedReason() string

GetStartedReason returns the reason set to the “Succeeded” condition when InitializeConditions is invoked

func (trs *TaskRunStatus) InitializeConditions()

InitializeConditions will set all conditions in taskRunCondSet to unknown for the TaskRun and set the started time to the current time

func (trs *TaskRunStatus) MarkResourceFailed(reason TaskRunReason, err error)

MarkResourceFailed sets the ConditionSucceeded condition to ConditionFalse based on an error that occurred and a reason

func (trs *TaskRunStatus) MarkResourceOngoing(reason TaskRunReason, message string)

MarkResourceOngoing sets the ConditionSucceeded condition to ConditionUnknown with the reason and message.

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type TaskRunStatusFields struct {

PodName string \`json:"podName"\`


StartTime \*metav1.Time \`json:"startTime,omitempty"\`


CompletionTime \*metav1.Time \`json:"completionTime,omitempty"\`




Steps \[\]StepState \`json:"steps,omitempty"\`








CloudEvents \[\]CloudEventDelivery \`json:"cloudEvents,omitempty"\`





RetriesStatus \[\]TaskRunStatus \`json:"retriesStatus,omitempty"\`






ResourcesResult \[\]PipelineResourceResult \`json:"resourcesResult,omitempty"\`




TaskRunResults \[\]TaskRunResult \`json:"taskResults,omitempty"\`




Sidecars \[\]SidecarState \`json:"sidecars,omitempty"\`


TaskSpec \*TaskSpec \`json:"taskSpec,omitempty"\`



Provenance \*Provenance \`json:"provenance,omitempty"\`


SpanContext map\[string\]string \`json:"spanContext,omitempty"\`

}

TaskRunStatusFields holds the fields of TaskRun’s status. This is defined separately and inlined so that other types can readily consume these fields via duck typing.

func (in *TaskRunStatusFields) DeepCopy() *TaskRunStatusFields

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunStatusFields.

func (in *TaskRunStatusFields) DeepCopyInto(out *TaskRunStatusFields)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

TaskRunStepOverride is used to override the values of a Step in the corresponding Task.

func (in *TaskRunStepOverride) DeepCopy() *TaskRunStepOverride

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunStepOverride.

func (in *TaskRunStepOverride) DeepCopyInto(out *TaskRunStepOverride)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskSpec struct {

Resources \*TaskResources \`json:"resources,omitempty"\`






Params ParamSpecs \`json:"params,omitempty"\`




DisplayName string \`json:"displayName,omitempty"\`




Description string \`json:"description,omitempty"\`




Steps \[\]Step \`json:"steps,omitempty"\`




Volumes \[\]corev1.Volume \`json:"volumes,omitempty"\`



StepTemplate \*StepTemplate \`json:"stepTemplate,omitempty"\`




Sidecars \[\]Sidecar \`json:"sidecars,omitempty"\`



Workspaces \[\]WorkspaceDeclaration \`json:"workspaces,omitempty"\`



Results \[\]TaskResult \`json:"results,omitempty"\`

}

TaskSpec defines the desired state of Task.

ConvertFrom implements apis.Convertible

ConvertTo implements apis.Convertible

func (in *TaskSpec) DeepCopy() *TaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ts *TaskSpec) GetIndexingReferencesToArrayParams() sets.String

GetIndexingReferencesToArrayParams returns all strings referencing indices of TaskRun array parameters from parameters, workspaces, and when expressions defined in the Task. For example, if a Task has a parameter with a value "$(params.array-param-name[1])", this would be one of the strings returned.

func (ts *TaskSpec) HasDeprecatedFields() bool

HasDeprecatedFields returns true if the TaskSpec has deprecated field specified.

SetDefaults set any defaults for the task spec

Validate implements apis.Validatable

TimeoutFields allows granular specification of pipeline, task, and finally timeouts

func (in *TimeoutFields) DeepCopy() *TimeoutFields

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeoutFields.

func (in *TimeoutFields) DeepCopyInto(out *TimeoutFields)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

WhenExpression allows a PipelineTask to declare expressions to be evaluated before the Task is run to determine whether the Task should be executed or skipped

func (in *WhenExpression) DeepCopy() *WhenExpression

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WhenExpression.

func (in *WhenExpression) DeepCopyInto(out *WhenExpression)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (we *WhenExpression) GetVarSubstitutionExpressions() ([]string, bool)

GetVarSubstitutionExpressions extracts all the values between "$(" and ")" in a When Expression

type WhenExpressions []WhenExpression

WhenExpressions are used to specify whether a Task should be executed or skipped All of them need to evaluate to True for a guarded Task to be executed.

func (wes WhenExpressions) AllowsExecution() bool

AllowsExecution evaluates an Input’s relationship to an array of Values, based on the Operator, to determine whether all the When Expressions are True. If they are all True, the guarded Task is executed, otherwise it is skipped.

func (in WhenExpressions) DeepCopy() WhenExpressions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WhenExpressions.

func (in WhenExpressions) DeepCopyInto(out *WhenExpressions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

ReplaceVariables interpolates variables, such as Parameters and Results, in the Input and Values.

WorkspaceBinding maps a Task’s declared workspace to a Volume.

ConvertFrom converts v1beta1 Param from v1 Param

func (in *WorkspaceBinding) DeepCopy() *WorkspaceBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceBinding.

func (in *WorkspaceBinding) DeepCopyInto(out *WorkspaceBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Validate looks at the Volume provided in wb and makes sure that it is valid. This means that only one VolumeSource can be specified, and also that the supported VolumeSource is itself valid.

type WorkspaceDeclaration struct {

Name string \`json:"name"\`


Description string \`json:"description,omitempty"\`


MountPath string \`json:"mountPath,omitempty"\`


ReadOnly bool \`json:"readOnly,omitempty"\`


Optional bool \`json:"optional,omitempty"\`

}

WorkspaceDeclaration is a declaration of a volume that a Task requires.

func (in *WorkspaceDeclaration) DeepCopy() *WorkspaceDeclaration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceDeclaration.

func (in *WorkspaceDeclaration) DeepCopyInto(out *WorkspaceDeclaration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

GetMountPath returns the mountPath for w which is the MountPath if provided or the default if not.

type WorkspacePipelineDeclaration = PipelineWorkspaceDeclaration

WorkspacePipelineDeclaration creates a named slot in a Pipeline that a PipelineRun is expected to populate with a workspace binding.

Deprecated: use PipelineWorkspaceDeclaration type instead

type WorkspacePipelineTaskBinding struct {

Name string \`json:"name"\`


Workspace string \`json:"workspace,omitempty"\`



SubPath string \`json:"subPath,omitempty"\`

}

WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be mapped to a task’s declared workspace.

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspacePipelineTaskBinding.

func (in *WorkspacePipelineTaskBinding) DeepCopyInto(out *WorkspacePipelineTaskBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkspaceUsage struct {

Name string \`json:"name"\`


MountPath string \`json:"mountPath"\`

}

WorkspaceUsage is used by a Step or Sidecar to declare that it wants isolated access to a Workspace defined in a Task.

func (in *WorkspaceUsage) DeepCopy() *WorkspaceUsage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceUsage.

func (in *WorkspaceUsage) DeepCopyInto(out *WorkspaceUsage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Related news

GHSA-w2h3-vvvq-3m53: Pipelines do not validate child UIDs

### Summary Pipelines do not validate child UIDs, which means that a user that has access to create TaskRuns can create their own Tasks that the Pipelines controller will accept as the child Task. We should add UID to PipelineRun status and validate that child Run status/results only come from Runs matching the same UID. ### Details While we [store and validate the PipelineRun's (api version, kind, name, uid) in the child Run's OwnerReference](https://github.com/tektoncd/pipeline/blob/2d38f5fa840291395178422d34b36b1bc739e2a2/pkg/reconciler/pipelinerun/pipelinerun.go#L1358-L1372), we only store (api version, kind, name) in the [ChildStatusReference](https://pkg.go.dev/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1#ChildStatusReference) . This means that if a client had access to create TaskRuns on a cluster, they could create a child TaskRun for a pipeline with the same name + owner reference, and the Pipeline controller picks it up as if it was the original TaskRun. This is...

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda
CVE-2023-6905
CVE-2023-6903
CVE-2023-6904
CVE-2023-3907