Documentation ¶
Index ¶
Constants ¶
const ( // ReasonRunFailedValidation indicates that the reason for failure status is that Run failed validation ReasonRunFailedValidation = "ReasonRunFailedValidation" // ReasonRunFailedCreatingPipelineRun indicates that the reason for failure status is that Run failed // to create PipelineRun ReasonRunFailedCreatingPipelineRun = "ReasonRunFailedCreatingPipelineRun" )
const (
ControllerName = "pipelinetotaskrun-controller"
)
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
NewController creates a Reconciler for Run and returns the result of NewImpl.
Types ¶
type PipelineTaskInfo ¶
type PipelineTaskInfo struct { // Name is the name of the pipeline Task Name string // TaskDeclaredParams are the parameters that the referenced Task spec declared TaskDeclaredParams []v1beta1.ParamSpec // ProvidedParamValues are the parameter values that were provided in the pipeline task ProvidedParamValues []v1beta1.Param // Steps are the steps the Task declared Steps []v1beta1.Step // Results are the results the Task declared Results []v1beta1.TaskResult }
PipelineTaskInfo holds all of the info needed to run a pipeline task
func NewPipelineTaskInfo ¶
func NewPipelineTaskInfo(pTask v1beta1.PipelineTask, taskSpecs map[string]*v1beta1.TaskSpec) (PipelineTaskInfo, error)
NewPipelineTaskInfo will construct an object that will hold all the info needed to run the pipeline task
func (PipelineTaskInfo) NamespaceParams ¶
func (pti PipelineTaskInfo) NamespaceParams() PipelineTaskInfo
NamespaceParams will return a new PipelineTaskInfo in which the names of all the declared params and provided values are updated such that the param name is prefaced by the name of the pipeline task. All uses of the params will be updated in the steps as well.
func (PipelineTaskInfo) NamespaceSteps ¶
func (pti PipelineTaskInfo) NamespaceSteps() PipelineTaskInfo
NamespaceSteps will return a new PipelineTaskInfo in which the names of all steps are updated so that they are prefaced by the name of the pipeline task.
func (PipelineTaskInfo) RenameWorkspaces ¶
func (pti PipelineTaskInfo) RenameWorkspaces(newMapping map[string]string) PipelineTaskInfo
RenameWorkspaces will return a new PipelineTask info in which all references to the keys in newMapping are updated to the values.
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler implements controller.Reconciler for Run resources.
func (*Reconciler) ReconcileKind ¶
func (r *Reconciler) ReconcileKind(ctx context.Context, run *v1alpha1.Run) reconciler.Event
ReconcileKind implements Interface.ReconcileKind.