Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 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
Index ¶
- Constants
- Variables
- func ApplyArrayReplacements(in string, stringReplacements map[string]string, ...) []string
- func ApplyReplacements(in string, replacements map[string]string) string
- func ApplyTaskModifier(ts *TaskSpec, tm TaskModifier) error
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- func ValidateDeclaredWorkspaces(workspaces []WorkspaceDeclaration, steps []Step, ...) *apis.FieldError
- func ValidateVariable(name, value, prefix, contextPrefix, locationName, path string, ...) *apis.FieldError
- func ValidateVariableIsolated(name, value, prefix, contextPrefix, locationName, path string, ...) *apis.FieldError
- func ValidateVariableProhibited(name, value, prefix, contextPrefix, locationName, path string, ...) *apis.FieldError
- func ValidateVolumes(volumes []corev1.Volume) *apis.FieldError
- type ArrayOrString
- func (arrayOrString *ArrayOrString) ApplyReplacements(stringReplacements map[string]string, arrayReplacements map[string][]string)
- func (in *ArrayOrString) DeepCopy() *ArrayOrString
- func (in *ArrayOrString) DeepCopyInto(out *ArrayOrString)
- func (arrayOrString ArrayOrString) MarshalJSON() ([]byte, error)
- func (arrayOrString *ArrayOrString) UnmarshalJSON(value []byte) error
- type CloudEventCondition
- type CloudEventDelivery
- type CloudEventDeliveryState
- type InternalTaskModifier
- func (in *InternalTaskModifier) DeepCopy() *InternalTaskModifier
- func (in *InternalTaskModifier) DeepCopyInto(out *InternalTaskModifier)
- func (tm *InternalTaskModifier) GetStepsToAppend() []Step
- func (tm *InternalTaskModifier) GetStepsToPrepend() []Step
- func (tm *InternalTaskModifier) GetVolumes() []v1.Volume
- type Param
- type ParamSpec
- type ParamType
- type Pipeline
- func (p *Pipeline) Copy() PipelineInterface
- func (in *Pipeline) DeepCopy() *Pipeline
- func (in *Pipeline) DeepCopyInto(out *Pipeline)
- func (in *Pipeline) DeepCopyObject() runtime.Object
- func (p *Pipeline) PipelineMetadata() metav1.ObjectMeta
- func (p *Pipeline) PipelineSpec() PipelineSpec
- func (p *Pipeline) SetDefaults(ctx context.Context)
- func (p *Pipeline) Validate(ctx context.Context) *apis.FieldError
- type PipelineDeclaredResource
- type PipelineInterface
- type PipelineList
- type PipelineResourceBinding
- type PipelineResourceRef
- type PipelineResourceResult
- type PipelineResourceType
- type PipelineSpec
- type PipelineStatus
- type PipelineTask
- type PipelineTaskCondition
- type PipelineTaskInputResource
- type PipelineTaskList
- type PipelineTaskOutputResource
- type PipelineTaskParam
- type PipelineTaskResources
- type PodTemplate
- type ResourceDeclaration
- type ResourceParam
- type SidecarState
- type Step
- type StepState
- type Task
- func (t *Task) Copy() TaskInterface
- func (in *Task) DeepCopy() *Task
- func (in *Task) DeepCopyInto(out *Task)
- func (in *Task) DeepCopyObject() runtime.Object
- func (t *Task) SetDefaults(ctx context.Context)
- func (t *Task) TaskMetadata() metav1.ObjectMeta
- func (t *Task) TaskSpec() TaskSpec
- func (t *Task) Validate(ctx context.Context) *apis.FieldError
- type TaskInterface
- type TaskKind
- type TaskList
- type TaskModifier
- type TaskRef
- type TaskResource
- type TaskResourceBinding
- type TaskResources
- type TaskRun
- func (in *TaskRun) DeepCopy() *TaskRun
- func (in *TaskRun) DeepCopyInto(out *TaskRun)
- func (in *TaskRun) DeepCopyObject() runtime.Object
- func (tr *TaskRun) GetBuildPodRef() corev1.ObjectReference
- func (tr *TaskRun) GetPipelineRunPVCName() string
- func (tr *TaskRun) GetRunKey() string
- func (tr *TaskRun) HasPipelineRunOwnerReference() bool
- func (tr *TaskRun) HasStarted() bool
- func (tr *TaskRun) IsCancelled() bool
- func (tr *TaskRun) IsDone() bool
- func (tr *TaskRun) IsPartOfPipeline() (bool, string, string)
- func (tr *TaskRun) IsSuccessful() bool
- func (tr *TaskRun) SetDefaults(ctx context.Context)
- func (tr *TaskRun) Validate(ctx context.Context) *apis.FieldError
- type TaskRunInputs
- type TaskRunList
- type TaskRunOutputs
- type TaskRunResources
- type TaskRunSpec
- type TaskRunSpecStatus
- type TaskRunStatus
- type TaskSpec
- type WorkspaceBinding
- type WorkspaceDeclaration
- type WorkspacePipelineDeclaration
- type WorkspacePipelineTaskBinding
Constants ¶
const ( // TaskRunSpecStatusCancelled indicates that the user wants to cancel the task, // if not already cancelled or terminated TaskRunSpecStatusCancelled = "TaskRunCancelled" )
Variables ¶
var (
// AddToScheme adds Build types to the scheme.
AddToScheme = schemeBuilder.AddToScheme
)
var AllParamTypes = []ParamType{ParamTypeString, ParamTypeArray}
AllParamTypes can be used for ParamType validation.
var AllResourceTypes = resource.AllResourceTypes
AllResourceTypes can be used for validation to check if a provided Resource type is one of the known types.
var (
AllowedOutputResources = resource.AllowedOutputResources
)
var SchemeGroupVersion = schema.GroupVersion{Group: pipeline.GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func ApplyArrayReplacements ¶ added in v0.10.0
func ApplyArrayReplacements(in string, stringReplacements map[string]string, arrayReplacements map[string][]string) []string
Take an input string, and output an array of strings related to possible arrayReplacements. If there aren't any areas where the input can be split up via arrayReplacements, then just return an array with a single element, which is ApplyReplacements(in, replacements).
func ApplyReplacements ¶ added in v0.10.0
func ApplyTaskModifier ¶ added in v0.10.0
func ApplyTaskModifier(ts *TaskSpec, tm TaskModifier) error
ApplyTaskModifier applies a modifier to the task by appending and prepending steps and volumes. If steps with the same name exist in ts an error will be returned. If identical Volumes have been added, they will not be added again. If Volumes with the same name but different contents have been added, an error will be returned.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func ValidateDeclaredWorkspaces ¶ added in v0.10.0
func ValidateDeclaredWorkspaces(workspaces []WorkspaceDeclaration, steps []Step, stepTemplate *corev1.Container) *apis.FieldError
a mount path which conflicts with any other declared workspaces, with the explicitly declared volume mounts, or with the stepTemplate. The names must also be unique.
func ValidateVariable ¶ added in v0.10.0
func ValidateVariable(name, value, prefix, contextPrefix, locationName, path string, vars map[string]struct{}) *apis.FieldError
func ValidateVariableIsolated ¶ added in v0.10.0
func ValidateVariableIsolated(name, value, prefix, contextPrefix, locationName, path string, vars map[string]struct{}) *apis.FieldError
Verifies that variables matching the relevant string expressions are completely isolated if present.
func ValidateVariableProhibited ¶ added in v0.10.0
func ValidateVariableProhibited(name, value, prefix, contextPrefix, locationName, path string, vars map[string]struct{}) *apis.FieldError
Verifies that variables matching the relevant string expressions do not reference any of the names present in vars.
func ValidateVolumes ¶ added in v0.10.0
func ValidateVolumes(volumes []corev1.Volume) *apis.FieldError
Types ¶
type ArrayOrString ¶ added in v0.10.0
type ArrayOrString struct { Type ParamType // Represents the stored type of ArrayOrString. StringVal string ArrayVal []string }
ArrayOrString 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.
func (*ArrayOrString) ApplyReplacements ¶ added in v0.10.0
func (arrayOrString *ArrayOrString) ApplyReplacements(stringReplacements map[string]string, arrayReplacements map[string][]string)
func (*ArrayOrString) DeepCopy ¶ added in v0.10.0
func (in *ArrayOrString) DeepCopy() *ArrayOrString
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArrayOrString.
func (*ArrayOrString) DeepCopyInto ¶ added in v0.10.0
func (in *ArrayOrString) DeepCopyInto(out *ArrayOrString)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ArrayOrString) MarshalJSON ¶ added in v0.10.0
func (arrayOrString ArrayOrString) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface.
func (*ArrayOrString) UnmarshalJSON ¶ added in v0.10.0
func (arrayOrString *ArrayOrString) UnmarshalJSON(value []byte) error
UnmarshalJSON implements the json.Unmarshaller interface.
type CloudEventCondition ¶ added in v0.10.0
type CloudEventCondition string
CloudEventCondition is a string that represents the condition of the event.
const ( // CloudEventConditionUnknown means that the condition for the event to be // triggered was not met yet, or we don't know the state yet. CloudEventConditionUnknown CloudEventCondition = "Unknown" // CloudEventConditionSent means that the event was sent successfully CloudEventConditionSent CloudEventCondition = "Sent" // CloudEventConditionFailed means that there was one or more attempts to // send the event, and none was successful so far. CloudEventConditionFailed CloudEventCondition = "Failed" )
type CloudEventDelivery ¶ added in v0.10.0
type CloudEventDelivery struct { // Target points to an addressable 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 (*CloudEventDelivery) DeepCopy ¶ added in v0.10.0
func (in *CloudEventDelivery) DeepCopy() *CloudEventDelivery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventDelivery.
func (*CloudEventDelivery) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
type CloudEventDeliveryState struct { // Current status Condition CloudEventCondition `json:"condition,omitempty"` // SentAt is the time at which the last attempt to send the event was made // +optional SentAt *metav1.Time `json:"sentAt,omitempty"` // Error is the text of error (if any) Error string `json:"message"` // RetryCount is the number of attempts of sending the cloud event RetryCount int32 `json:"retryCount"` }
CloudEventDeliveryState reports the state of a cloud event to be sent.
func (*CloudEventDeliveryState) DeepCopy ¶ added in v0.10.0
func (in *CloudEventDeliveryState) DeepCopy() *CloudEventDeliveryState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEventDeliveryState.
func (*CloudEventDeliveryState) DeepCopyInto ¶ added in v0.10.0
func (in *CloudEventDeliveryState) DeepCopyInto(out *CloudEventDeliveryState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InternalTaskModifier ¶ added in v0.10.0
InternalTaskModifier implements TaskModifier for resources that are built-in to Tekton Pipelines.
func (*InternalTaskModifier) DeepCopy ¶ added in v0.10.0
func (in *InternalTaskModifier) DeepCopy() *InternalTaskModifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InternalTaskModifier.
func (*InternalTaskModifier) DeepCopyInto ¶ added in v0.10.0
func (in *InternalTaskModifier) DeepCopyInto(out *InternalTaskModifier)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InternalTaskModifier) GetStepsToAppend ¶ added in v0.10.0
func (tm *InternalTaskModifier) GetStepsToAppend() []Step
GetStepsToAppend returns a set of Steps to append to the Task.
func (*InternalTaskModifier) GetStepsToPrepend ¶ added in v0.10.0
func (tm *InternalTaskModifier) GetStepsToPrepend() []Step
GetStepsToPrepend returns a set of Steps to prepend to the Task.
func (*InternalTaskModifier) GetVolumes ¶ added in v0.10.0
func (tm *InternalTaskModifier) GetVolumes() []v1.Volume
GetVolumes returns a set of Volumes to prepend to the Task pod.
type Param ¶ added in v0.10.0
type Param struct { Name string `json:"name"` Value ArrayOrString `json:"value"` }
Param declares an ArrayOrString to use for the parameter called name.
func (*Param) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.
func (*Param) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ParamSpec ¶ added in v0.10.0
type ParamSpec struct { // Name declares the name by which a parameter is referenced. Name string `json:"name"` // Type is the user-specified type of the parameter. The possible types // are currently "string" and "array", and "string" is the default. // +optional Type ParamType `json:"type,omitempty"` // Description is a user-facing description of the parameter that may be // used to populate a UI. // +optional Description string `json:"description,omitempty"` // Default is the value a parameter takes if no input value is supplied. If // default is set, a Task may be executed without a supplied value for the // parameter. // +optional Default *ArrayOrString `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 (*ParamSpec) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParamSpec.
func (*ParamSpec) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ParamSpec) SetDefaults ¶ added in v0.10.0
type ParamType ¶ added in v0.10.0
type ParamType string
ParamType indicates the type of an input parameter; Used to distinguish between a single string and an array of strings.
type Pipeline ¶ added in v0.10.0
type Pipeline struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Pipeline from the client // +optional Spec PipelineSpec `json:"spec"` // Status is deprecated. // It usually is used to communicate the observed state of the Pipeline from // the controller, but was unused as there is no controller for Pipeline. // +optional Status *PipelineStatus `json:"status,omitempty"` }
Pipeline describes a list of Tasks to execute. It expresses how outputs of tasks feed into inputs of subsequent tasks. +k8s:openapi-gen=true
func (*Pipeline) Copy ¶ added in v0.10.0
func (p *Pipeline) Copy() PipelineInterface
func (*Pipeline) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.
func (*Pipeline) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pipeline) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Pipeline) PipelineMetadata ¶ added in v0.10.0
func (p *Pipeline) PipelineMetadata() metav1.ObjectMeta
func (*Pipeline) PipelineSpec ¶ added in v0.10.0
func (p *Pipeline) PipelineSpec() PipelineSpec
func (*Pipeline) SetDefaults ¶ added in v0.10.0
type PipelineDeclaredResource ¶ added in v0.10.0
type PipelineDeclaredResource struct { // Name is the name that will be used by the Pipeline to refer to this resource. // It does not directly correspond to the name of any PipelineResources Task // inputs or outputs, and it does not correspond to the actual names of the // PipelineResources that will be bound in the PipelineRun. Name string `json:"name"` // Type is the type of the PipelineResource. Type PipelineResourceType `json:"type"` }
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.
func (*PipelineDeclaredResource) DeepCopy ¶ added in v0.10.0
func (in *PipelineDeclaredResource) DeepCopy() *PipelineDeclaredResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineDeclaredResource.
func (*PipelineDeclaredResource) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineDeclaredResource) DeepCopyInto(out *PipelineDeclaredResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineInterface ¶ added in v0.10.0
type PipelineInterface interface { PipelineMetadata() metav1.ObjectMeta PipelineSpec() PipelineSpec Copy() PipelineInterface }
PipelineInterface is implemented by Pipeline and ClusterPipeline
type PipelineList ¶ added in v0.10.0
type PipelineList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Pipeline `json:"items"` }
PipelineList contains a list of Pipeline
func (*PipelineList) DeepCopy ¶ added in v0.10.0
func (in *PipelineList) DeepCopy() *PipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.
func (*PipelineList) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineList) DeepCopyInto(out *PipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineList) DeepCopyObject ¶ added in v0.10.0
func (in *PipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineResourceBinding ¶ added in v0.10.0
type PipelineResourceBinding struct { // Name is the name of the PipelineResource in the Pipeline's declaration Name string `json:"name,omitempty"` // ResourceRef is a reference to the instance of the actual PipelineResource // that should be used // +optional ResourceRef *PipelineResourceRef `json:"resourceRef,omitempty"` // ResourceSpec is specification of a resource that should be created and // consumed by the task // +optional 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
func (*PipelineResourceBinding) DeepCopy ¶ added in v0.10.0
func (in *PipelineResourceBinding) DeepCopy() *PipelineResourceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceBinding.
func (*PipelineResourceBinding) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineResourceBinding) DeepCopyInto(out *PipelineResourceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineResourceRef ¶ added in v0.10.0
type PipelineResourceRef struct { // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` // API version of the referent // +optional APIVersion string `json:"apiVersion,omitempty"` }
PipelineResourceRef can be used to refer to a specific instance of a Resource
func (*PipelineResourceRef) DeepCopy ¶ added in v0.10.0
func (in *PipelineResourceRef) DeepCopy() *PipelineResourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceRef.
func (*PipelineResourceRef) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineResourceRef) DeepCopyInto(out *PipelineResourceRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineResourceResult ¶ added in v0.10.0
type PipelineResourceResult struct { Key string `json:"key"` Value string `json:"value"` ResourceRef PipelineResourceRef `json:"resourceRef,omitempty"` }
PipelineResourceResult used to export the image name and digest as json
func (*PipelineResourceResult) DeepCopy ¶ added in v0.10.0
func (in *PipelineResourceResult) DeepCopy() *PipelineResourceResult
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceResult.
func (*PipelineResourceResult) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineResourceResult) DeepCopyInto(out *PipelineResourceResult)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineResourceType ¶ added in v0.10.0
type PipelineResourceType = resource.PipelineResourceType
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.
const ( // PipelineResourceTypeGit indicates that this source is a GitHub repo. PipelineResourceTypeGit PipelineResourceType = resource.PipelineResourceTypeGit // PipelineResourceTypeStorage indicates that this source is a storage blob resource. PipelineResourceTypeStorage PipelineResourceType = resource.PipelineResourceTypeStorage // PipelineResourceTypeImage indicates that this source is a docker Image. PipelineResourceTypeImage PipelineResourceType = resource.PipelineResourceTypeImage // PipelineResourceTypeCluster indicates that this source is a k8s cluster Image. PipelineResourceTypeCluster PipelineResourceType = resource.PipelineResourceTypeCluster // PipelineResourceTypePullRequest indicates that this source is a SCM Pull Request. PipelineResourceTypePullRequest PipelineResourceType = resource.PipelineResourceTypePullRequest // PipelineResourceTypeCloudEvent indicates that this source is a cloud event URI PipelineResourceTypeCloudEvent PipelineResourceType = resource.PipelineResourceTypeCloudEvent )
type PipelineSpec ¶ added in v0.10.0
type PipelineSpec struct { // Resources declares the names and types of the resources given to the // Pipeline's tasks as inputs and outputs. Resources []PipelineDeclaredResource `json:"resources,omitempty"` // Tasks declares the graph of Tasks that execute when this Pipeline is run. Tasks []PipelineTask `json:"tasks,omitempty"` // Params declares a list of input parameters that must be supplied when // this Pipeline is run. Params []ParamSpec `json:"params,omitempty"` }
PipelineSpec defines the desired state of Pipeline.
func (*PipelineSpec) DeepCopy ¶ added in v0.10.0
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineSpec) SetDefaults ¶ added in v0.10.0
func (ps *PipelineSpec) SetDefaults(ctx context.Context)
func (*PipelineSpec) Validate ¶ added in v0.10.0
func (ps *PipelineSpec) Validate(ctx context.Context) *apis.FieldError
Validate checks that taskNames in the Pipeline are valid and that the graph of Tasks expressed in the Pipeline makes sense.
type PipelineStatus ¶ added in v0.10.0
type PipelineStatus struct { }
PipelineStatus does not contain anything because Pipelines on their own do not have a status, they just hold data which is later used by a PipelineRun. Deprecated
func (*PipelineStatus) DeepCopy ¶ added in v0.10.0
func (in *PipelineStatus) DeepCopy() *PipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineStatus.
func (*PipelineStatus) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineTask ¶ added in v0.10.0
type PipelineTask struct { // Name is the name of this task within the context of a Pipeline. Name is // used as a coordinate with the `from` and `runAfter` fields to establish // the execution order of tasks relative to one another. Name string `json:"name,omitempty"` // TaskRef is a reference to a task definition. // +optional TaskRef *TaskRef `json:"taskRef,omitempty"` // TaskSpec is a specification of a task // +optional TaskSpec *TaskSpec `json:"taskSpec,omitempty"` // Conditions is a list of conditions that need to be true for the task to run // +optional Conditions []PipelineTaskCondition `json:"conditions,omitempty"` // Retries represents how many times this task should be retried in case of task failure: ConditionSucceeded set to False // +optional Retries int `json:"retries,omitempty"` // RunAfter is the list of PipelineTask names that should be executed before // this Task executes. (Used to force a specific ordering in graph execution.) // +optional RunAfter []string `json:"runAfter,omitempty"` // Resources declares the resources given to this task as inputs and // outputs. // +optional Resources *PipelineTaskResources `json:"resources,omitempty"` // Parameters declares parameters passed to this task. // +optional Params []Param `json:"params,omitempty"` }
PipelineTask defines a task in a Pipeline, passing inputs from both Params and from the output of previous tasks.
func (*PipelineTask) DeepCopy ¶ added in v0.10.0
func (in *PipelineTask) DeepCopy() *PipelineTask
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTask.
func (*PipelineTask) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineTask) DeepCopyInto(out *PipelineTask)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PipelineTask) Deps ¶ added in v0.10.0
func (pt PipelineTask) Deps() []string
func (PipelineTask) HashKey ¶ added in v0.10.0
func (pt PipelineTask) HashKey() string
type PipelineTaskCondition ¶ added in v0.10.0
type PipelineTaskCondition struct { // ConditionRef is the name of the Condition to use for the conditionCheck ConditionRef string `json:"conditionRef"` // Params declare parameters passed to this Condition // +optional Params []Param `json:"params,omitempty"` // Resources declare the resources provided to this Condition as input Resources []PipelineTaskInputResource `json:"resources,omitempty"` }
PipelineTaskCondition allows a PipelineTask to declare a Condition to be evaluated before the Task is run.
func (*PipelineTaskCondition) DeepCopy ¶ added in v0.10.0
func (in *PipelineTaskCondition) DeepCopy() *PipelineTaskCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskCondition.
func (*PipelineTaskCondition) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineTaskCondition) DeepCopyInto(out *PipelineTaskCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineTaskInputResource ¶ added in v0.10.0
type PipelineTaskInputResource struct { // Name is the name of the PipelineResource as declared by the Task. Name string `json:"name"` // Resource is the name of the DeclaredPipelineResource to use. Resource string `json:"resource"` // From is the list of PipelineTask names that the resource has to come from. // (Implies an ordering in the execution graph.) // +optional 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.
func (*PipelineTaskInputResource) DeepCopy ¶ added in v0.10.0
func (in *PipelineTaskInputResource) DeepCopy() *PipelineTaskInputResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskInputResource.
func (*PipelineTaskInputResource) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
type PipelineTaskList []PipelineTask
func (PipelineTaskList) DeepCopy ¶ added in v0.10.0
func (in PipelineTaskList) DeepCopy() PipelineTaskList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskList.
func (PipelineTaskList) DeepCopyInto ¶ added in v0.10.0
func (in PipelineTaskList) DeepCopyInto(out *PipelineTaskList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PipelineTaskList) Items ¶ added in v0.10.0
func (l PipelineTaskList) Items() []dag.Task
type PipelineTaskOutputResource ¶ added in v0.10.0
type PipelineTaskOutputResource struct { // Name is the name of the PipelineResource as declared by the Task. Name string `json:"name"` // Resource is the name of the DeclaredPipelineResource to use. 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.
func (*PipelineTaskOutputResource) DeepCopy ¶ added in v0.10.0
func (in *PipelineTaskOutputResource) DeepCopy() *PipelineTaskOutputResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskOutputResource.
func (*PipelineTaskOutputResource) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
PipelineTaskParam is used to provide arbitrary string parameters to a Task.
func (*PipelineTaskParam) DeepCopy ¶ added in v0.10.0
func (in *PipelineTaskParam) DeepCopy() *PipelineTaskParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskParam.
func (*PipelineTaskParam) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
type PipelineTaskResources struct { // Inputs holds the mapping from the PipelineResources declared in // DeclaredPipelineResources to the input PipelineResources required by the Task. Inputs []PipelineTaskInputResource `json:"inputs,omitempty"` // Outputs holds the mapping from the PipelineResources declared in // DeclaredPipelineResources to the input PipelineResources required by the Task. 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.
func (*PipelineTaskResources) DeepCopy ¶ added in v0.10.0
func (in *PipelineTaskResources) DeepCopy() *PipelineTaskResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskResources.
func (*PipelineTaskResources) DeepCopyInto ¶ added in v0.10.0
func (in *PipelineTaskResources) DeepCopyInto(out *PipelineTaskResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodTemplate ¶ added in v0.10.0
PodTemplate holds pod specific configuration
type ResourceDeclaration ¶ added in v0.10.0
type ResourceDeclaration = resource.ResourceDeclaration
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`).
type ResourceParam ¶ added in v0.10.0
type ResourceParam = resource.ResourceParam
ResourceParam declares a string value to use for the parameter called Name, and is used in the specific context of PipelineResources.
type SidecarState ¶ added in v0.10.0
type SidecarState struct { Name string `json:"name,omitempty"` ImageID string `json:"imageID,omitempty"` }
SidecarState reports the results of sidecar in the Task.
func (*SidecarState) DeepCopy ¶ added in v0.10.0
func (in *SidecarState) DeepCopy() *SidecarState
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SidecarState.
func (*SidecarState) DeepCopyInto ¶ added in v0.10.0
func (in *SidecarState) DeepCopyInto(out *SidecarState)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Step ¶ added in v0.10.0
type Step struct { corev1.Container // Script is the contents of an executable file to execute. // // If Script is not empty, the Step cannot have an Command or Args. Script string `json:"script,omitempty"` }
Step embeds the Container type, which allows it to include fields not provided by Container.
func MergeStepsWithStepTemplate ¶ added in v0.10.0
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 (*Step) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.
func (*Step) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StepState ¶ added in v0.10.0
type StepState struct { corev1.ContainerState Name string `json:"name,omitempty"` ContainerName string `json:"container,omitempty"` ImageID string `json:"imageID,omitempty"` }
StepState reports the results of running a step in the Task.
func (*StepState) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepState.
func (*StepState) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Task ¶ added in v0.10.0
type Task struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata"` // Spec holds the desired state of the Task from the client // +optional Spec TaskSpec `json:"spec"` }
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
func (*Task) Copy ¶ added in v0.10.0
func (t *Task) Copy() TaskInterface
func (*Task) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.
func (*Task) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Task) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Task) SetDefaults ¶ added in v0.10.0
func (*Task) TaskMetadata ¶ added in v0.10.0
func (t *Task) TaskMetadata() metav1.ObjectMeta
type TaskInterface ¶ added in v0.10.0
type TaskInterface interface { TaskMetadata() metav1.ObjectMeta TaskSpec() TaskSpec Copy() TaskInterface }
TaskInterface is implemented by Task and ClusterTask
type TaskKind ¶ added in v0.10.0
type TaskKind string
Check that Pipeline may be validated and defaulted. TaskKind defines the type of Task used by the pipeline.
type TaskList ¶ added in v0.10.0
type TaskList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []Task `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object TaskList contains a list of Task
func (*TaskList) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.
func (*TaskList) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskList) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TaskModifier ¶ added in v0.10.0
type TaskModifier interface { GetStepsToPrepend() []Step GetStepsToAppend() []Step GetVolumes() []v1.Volume }
TaskModifier is an interface to be implemented by different PipelineResources
type TaskRef ¶ added in v0.10.0
type TaskRef struct { // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name,omitempty"` // TaskKind inficates the kind of the task, namespaced or cluster scoped. Kind TaskKind `json:"kind,omitempty"` // API version of the referent // +optional APIVersion string `json:"apiVersion,omitempty"` }
TaskRef can be used to refer to a specific instance of a task. Copied from CrossVersionObjectReference: https://github.com/kubernetes/kubernetes/blob/169df7434155cbbc22f1532cba8e0a9588e29ad8/pkg/apis/autoscaling/types.go#L64
func (*TaskRef) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRef.
func (*TaskRef) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TaskResource ¶ added in v0.10.0
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`).
func (*TaskResource) DeepCopy ¶ added in v0.10.0
func (in *TaskResource) DeepCopy() *TaskResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResource.
func (*TaskResource) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
type TaskResourceBinding struct { PipelineResourceBinding // Paths will probably be removed in #1284, and then PipelineResourceBinding can be used instead. // The optional Path field corresponds to a path on disk at which the Resource can be found // (used when providing the resource via mounted volume, overriding the default logic to fetch the Resource). // +optional Paths []string `json:"paths,omitempty"` }
TaskResourceBinding points to the PipelineResource that will be used for the Task input or output called Name.
func (*TaskResourceBinding) DeepCopy ¶ added in v0.10.0
func (in *TaskResourceBinding) DeepCopy() *TaskResourceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResourceBinding.
func (*TaskResourceBinding) DeepCopyInto ¶ added in v0.10.0
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 ¶ added in v0.10.0
type TaskResources struct { // Inputs holds the mapping from the PipelineResources declared in // DeclaredPipelineResources to the input PipelineResources required by the Task. Inputs []TaskResource `json:"inputs,omitempty"` // Outputs holds the mapping from the PipelineResources declared in // DeclaredPipelineResources to the input PipelineResources required by the Task. 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.
func (*TaskResources) DeepCopy ¶ added in v0.10.0
func (in *TaskResources) DeepCopy() *TaskResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResources.
func (*TaskResources) DeepCopyInto ¶ added in v0.10.0
func (in *TaskResources) DeepCopyInto(out *TaskResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskResources) Validate ¶ added in v0.10.0
func (tr *TaskResources) Validate(ctx context.Context) *apis.FieldError
type TaskRun ¶ added in v0.10.0
type TaskRun struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec TaskRunSpec `json:"spec,omitempty"` // +optional 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
func (*TaskRun) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRun.
func (*TaskRun) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskRun) DeepCopyObject ¶ added in v0.10.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TaskRun) GetBuildPodRef ¶ added in v0.10.0
func (tr *TaskRun) GetBuildPodRef() corev1.ObjectReference
GetBuildPodRef for task
func (*TaskRun) GetPipelineRunPVCName ¶ added in v0.10.0
GetPipelineRunPVCName for taskrun gets pipelinerun
func (*TaskRun) GetRunKey ¶ added in v0.10.0
GetRunKey return the taskrun key for timeout handler map
func (*TaskRun) HasPipelineRunOwnerReference ¶ added in v0.10.0
HasPipelineRunOwnerReference returns true of TaskRun has owner reference of type PipelineRun
func (*TaskRun) HasStarted ¶ added in v0.10.0
HasStarted function check whether taskrun has valid start time set in its status
func (*TaskRun) IsCancelled ¶ added in v0.10.0
IsCancelled returns true if the TaskRun's spec status is set to Cancelled state
func (*TaskRun) IsDone ¶ added in v0.10.0
IsDone returns true if the TaskRun's status indicates that it is done.
func (*TaskRun) IsPartOfPipeline ¶ added in v0.10.0
IsPartOfPipeline return true if TaskRun is a part of a Pipeline. It also return the name of Pipeline and PipelineRun
func (*TaskRun) IsSuccessful ¶ added in v0.10.0
IsSuccessful returns true if the TaskRun's status indicates that it is done.
func (*TaskRun) SetDefaults ¶ added in v0.10.0
type TaskRunInputs ¶ added in v0.10.0
type TaskRunInputs struct { // +optional Resources []TaskResourceBinding `json:"resources,omitempty"` // +optional Params []Param `json:"params,omitempty"` }
TaskRunInputs holds the input values that this task was invoked with.
func (*TaskRunInputs) DeepCopy ¶ added in v0.10.0
func (in *TaskRunInputs) DeepCopy() *TaskRunInputs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunInputs.
func (*TaskRunInputs) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunInputs) DeepCopyInto(out *TaskRunInputs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TaskRunList ¶ added in v0.10.0
type TaskRunList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []TaskRun `json:"items"` }
TaskRunList contains a list of TaskRun
func (*TaskRunList) DeepCopy ¶ added in v0.10.0
func (in *TaskRunList) DeepCopy() *TaskRunList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunList.
func (*TaskRunList) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunList) DeepCopyInto(out *TaskRunList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskRunList) DeepCopyObject ¶ added in v0.10.0
func (in *TaskRunList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TaskRunOutputs ¶ added in v0.10.0
type TaskRunOutputs struct { // +optional Resources []TaskResourceBinding `json:"resources,omitempty"` }
TaskRunOutputs holds the output values that this task was invoked with.
func (*TaskRunOutputs) DeepCopy ¶ added in v0.10.0
func (in *TaskRunOutputs) DeepCopy() *TaskRunOutputs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunOutputs.
func (*TaskRunOutputs) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunOutputs) DeepCopyInto(out *TaskRunOutputs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TaskRunResources ¶ added in v0.10.0
type TaskRunResources struct { // Inputs holds the inputs resources this task was invoked with Inputs []TaskResourceBinding `json:"inputs,omitempty"` // Outputs holds the inputs resources this task was invoked with Outputs []TaskResourceBinding `json:"outputs,omitempty"` }
TaskRunResources allows a TaskRun to declare inputs and outputs TaskResourceBinding
func (*TaskRunResources) DeepCopy ¶ added in v0.10.0
func (in *TaskRunResources) DeepCopy() *TaskRunResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunResources.
func (*TaskRunResources) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunResources) DeepCopyInto(out *TaskRunResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskRunResources) Validate ¶ added in v0.10.0
func (tr *TaskRunResources) Validate(ctx context.Context) *apis.FieldError
type TaskRunSpec ¶ added in v0.10.0
type TaskRunSpec struct { // +optional Params []Param `json:"params,omitempty"` // +optional Resources *TaskRunResources `json:"resources,omitempty"` // +optional ServiceAccountName string `json:"serviceAccountName"` // no more than one of the TaskRef and TaskSpec may be specified. // +optional TaskRef *TaskRef `json:"taskRef,omitempty"` // +optional TaskSpec *TaskSpec `json:"taskSpec,omitempty"` // Used for cancelling a taskrun (and maybe more later on) // +optional Status TaskRunSpecStatus `json:"status,omitempty"` // Time after which the build times out. Defaults to 10 minutes. // Specified build timeout should be less than 24h. // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration // +optional Timeout *metav1.Duration `json:"timeout,omitempty"` // PodTemplate holds pod specific configuration PodTemplate PodTemplate `json:"podTemplate,omitempty"` // Workspaces is a list of WorkspaceBindings from volumes to workspaces. // +optional Workspaces []WorkspaceBinding `json:"workspaces,omitempty"` }
TaskRunSpec defines the desired state of TaskRun
func (*TaskRunSpec) DeepCopy ¶ added in v0.10.0
func (in *TaskRunSpec) DeepCopy() *TaskRunSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunSpec.
func (*TaskRunSpec) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunSpec) DeepCopyInto(out *TaskRunSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskRunSpec) SetDefaults ¶ added in v0.10.0
func (trs *TaskRunSpec) SetDefaults(ctx context.Context)
func (*TaskRunSpec) Validate ¶ added in v0.10.0
func (ts *TaskRunSpec) Validate(ctx context.Context) *apis.FieldError
Validate taskrun spec
type TaskRunSpecStatus ¶ added in v0.10.0
type TaskRunSpecStatus string
TaskRunSpecStatus defines the taskrun spec status the user can provide
type TaskRunStatus ¶ added in v0.10.0
type TaskRunStatus struct { duckv1beta1.Status `json:",inline"` // PodName is the name of the pod responsible for executing this task's steps. PodName string `json:"podName"` // StartTime is the time the build is actually started. // +optional StartTime *metav1.Time `json:"startTime,omitempty"` // CompletionTime is the time the build completed. // +optional CompletionTime *metav1.Time `json:"completionTime,omitempty"` // Steps describes the state of each build step container. // +optional Steps []StepState `json:"steps,omitempty"` // CloudEvents describe the state of each cloud event requested via a // CloudEventResource. // +optional CloudEvents []CloudEventDelivery `json:"cloudEvents,omitempty"` // RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures. // All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant. // +optional RetriesStatus []TaskRunStatus `json:"retriesStatus,omitempty"` // Results from Resources built during the taskRun. currently includes // the digest of build container images // optional ResourcesResult []PipelineResourceResult `json:"resourcesResult,omitempty"` // The list has one entry per sidecar in the manifest. Each entry is // represents the imageid of the corresponding sidecar. Sidecars []SidecarState `json:"sidecars,omitempty"` }
TaskRunStatus defines the observed state of TaskRun
func (*TaskRunStatus) DeepCopy ¶ added in v0.10.0
func (in *TaskRunStatus) DeepCopy() *TaskRunStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunStatus.
func (*TaskRunStatus) DeepCopyInto ¶ added in v0.10.0
func (in *TaskRunStatus) DeepCopyInto(out *TaskRunStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskRunStatus) GetCondition ¶ added in v0.10.0
func (tr *TaskRunStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the Condition matching the given type.
func (*TaskRunStatus) InitializeConditions ¶ added in v0.10.0
func (tr *TaskRunStatus) InitializeConditions()
InitializeConditions will set all conditions in taskRunCondSet to unknown for the TaskRun and set the started time to the current time
func (*TaskRunStatus) SetCondition ¶ added in v0.10.0
func (tr *TaskRunStatus) SetCondition(newCond *apis.Condition)
SetCondition sets the condition, unsetting previous conditions with the same type as necessary.
type TaskSpec ¶ added in v0.10.0
type TaskSpec struct { // Resources is a list input and output resource to run the task // Resources are represented in TaskRuns as bindings to instances of // PipelineResources. // +optional Resources *TaskResources `json:"resources,omitempty"` // Params is a list of input parameters required to run the task. Params // must be supplied as inputs in TaskRuns unless they declare a default // value. // +optional Params []ParamSpec `json:"params,omitempty"` // Steps are the steps of the build; each step is run sequentially with the // source mounted into /workspace. Steps []Step `json:"steps,omitempty"` // Volumes is a collection of volumes that are available to mount into the // steps of the build. Volumes []corev1.Volume `json:"volumes,omitempty"` // StepTemplate can be used as the basis for all step containers within the // Task, so that the steps inherit settings on the base container. StepTemplate *corev1.Container `json:"stepTemplate,omitempty"` // Sidecars are run alongside the Task's step containers. They begin before // the steps start and end after the steps complete. Sidecars []corev1.Container `json:"sidecars,omitempty"` // Workspaces are the volumes that this Task requires. Workspaces []WorkspaceDeclaration }
TaskSpec defines the desired state of Task.
func (*TaskSpec) DeepCopy ¶ added in v0.10.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.
func (*TaskSpec) DeepCopyInto ¶ added in v0.10.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TaskSpec) SetDefaults ¶ added in v0.10.0
SetDefaults set any defaults for the task spec
type WorkspaceBinding ¶ added in v0.10.0
type WorkspaceBinding struct { // Name is the name of the workspace populated by the volume. Name string `json:"name"` // SubPath is optionally a directory on the volume which should be used // for this binding (i.e. the volume will be mounted at this sub directory). // +optional SubPath string `json:"subPath,omitempty"` // PersistentVolumeClaimVolumeSource represents a reference to a // PersistentVolumeClaim in the same namespace. Either this OR EmptyDir can be used. // +optional PersistentVolumeClaim *corev1.PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` // EmptyDir represents a temporary directory that shares a Task's lifetime. // More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir // Either this OR PersistentVolumeClaim can be used. // +optional EmptyDir *corev1.EmptyDirVolumeSource `json:"emptyDir,omitempty"` // ConfigMap represents a configMap that should populate this workspace. // +optional ConfigMap *corev1.ConfigMapVolumeSource `json:"configMap,omitempty"` // Secret represents a secret that should populate this workspace. // +optional Secret *corev1.SecretVolumeSource `json:"secret,omitempty"` }
WorkspaceBinding maps a Task's declared workspace to a Volume.
func (*WorkspaceBinding) DeepCopy ¶ added in v0.10.0
func (in *WorkspaceBinding) DeepCopy() *WorkspaceBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceBinding.
func (*WorkspaceBinding) DeepCopyInto ¶ added in v0.10.0
func (in *WorkspaceBinding) DeepCopyInto(out *WorkspaceBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkspaceBinding) Validate ¶ added in v0.10.0
func (b *WorkspaceBinding) Validate(ctx context.Context) *apis.FieldError
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 ¶ added in v0.10.0
type WorkspaceDeclaration struct { // Name is the name by which you can bind the volume at runtime. Name string `json:"name"` // Description is an optional human readable description of this volume. // +optional Description string `json:"description,omitempty"` // MountPath overrides the directory that the volume will be made available at. // +optional MountPath string `json:"mountPath,omitempty"` // ReadOnly dictates whether a mounted volume is writable. By default this // field is false and so mounted volumes are writable. ReadOnly bool `json:"readOnly,omitempty"` }
WorkspaceDeclaration is a declaration of a volume that a Task requires.
func (*WorkspaceDeclaration) DeepCopy ¶ added in v0.10.0
func (in *WorkspaceDeclaration) DeepCopy() *WorkspaceDeclaration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspaceDeclaration.
func (*WorkspaceDeclaration) DeepCopyInto ¶ added in v0.10.0
func (in *WorkspaceDeclaration) DeepCopyInto(out *WorkspaceDeclaration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkspaceDeclaration) GetMountPath ¶ added in v0.10.0
func (w *WorkspaceDeclaration) GetMountPath() string
GetMountPath returns the mountPath for w which is the MountPath if provided or the default if not.
type WorkspacePipelineDeclaration ¶ added in v0.10.0
type WorkspacePipelineDeclaration struct { // Name is the name of a workspace to be provided by a PipelineRun. Name string `json:"name"` }
WorkspacePipelineDeclaration creates a named slot in a Pipeline that a PipelineRun is expected to populate with a workspace binding.
func (*WorkspacePipelineDeclaration) DeepCopy ¶ added in v0.10.0
func (in *WorkspacePipelineDeclaration) DeepCopy() *WorkspacePipelineDeclaration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspacePipelineDeclaration.
func (*WorkspacePipelineDeclaration) DeepCopyInto ¶ added in v0.10.0
func (in *WorkspacePipelineDeclaration) DeepCopyInto(out *WorkspacePipelineDeclaration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WorkspacePipelineTaskBinding ¶ added in v0.10.0
type WorkspacePipelineTaskBinding struct { // Name is the name of the workspace as declared by the task Name string `json:"name"` // Workspace is the name of the workspace declared by the pipeline Workspace string `json:"workspace"` }
WorkspacePipelineTaskBinding describes how a workspace passed into the pipeline should be mapped to a task's declared workspace.
func (*WorkspacePipelineTaskBinding) DeepCopy ¶ added in v0.10.0
func (in *WorkspacePipelineTaskBinding) DeepCopy() *WorkspacePipelineTaskBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkspacePipelineTaskBinding.
func (*WorkspacePipelineTaskBinding) DeepCopyInto ¶ added in v0.10.0
func (in *WorkspacePipelineTaskBinding) DeepCopyInto(out *WorkspacePipelineTaskBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- doc.go
- merge.go
- param_types.go
- pipeline_defaults.go
- pipeline_interface.go
- pipeline_types.go
- pipeline_validation.go
- pod.go
- register.go
- resource_types.go
- resource_types_validation.go
- substitution.go
- task_defaults.go
- task_interface.go
- task_types.go
- task_validation.go
- taskrun_defaults.go
- taskrun_types.go
- taskrun_validation.go
- workspace_types.go
- workspace_validation.go
- zz_generated.deepcopy.go