pipelinetotaskrun

package
v0.0.0-...-8ee384e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (
	ControllerName = "pipelinetotaskrun-controller"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context, cmw configmap.Watcher) *controller.Impl

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 PipelineTaskToWorkspaces

type PipelineTaskToWorkspaces map[string]map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL