Documentation ¶
Index ¶
- Constants
- func MissingKeysObjectParamNames(paramSpecs []v1.ParamSpec, params v1.Params) map[string][]string
- func NewController(opts *pipeline.Options, clock clock.PassiveClock) func(context.Context, configmap.Watcher) *controller.Impl
- func ValidateEnumParam(ctx context.Context, params []v1.Param, paramSpecs v1.ParamSpecs) error
- func ValidateResolvedTask(ctx context.Context, params []v1.Param, matrix *v1.Matrix, ...) error
- type Reconciler
Constants ¶
const ( // TracerName is the name of the tracer TracerName = "TaskRunReconciler" // SpanContextAnnotation is the name of the Annotation used for propogating SpanContext SpanContextAnnotation = "tekton.dev/taskrunSpanContext" )
const (
// TracerProviderName is the name of TraceProvider
TracerProviderName = "taskrun-reconciler"
)
Variables ¶
This section is empty.
Functions ¶
func MissingKeysObjectParamNames ¶ added in v0.38.0
MissingKeysObjectParamNames checks if all required keys of object type param definitions are provided in params or param definitions' defaults.
func NewController ¶
func NewController(opts *pipeline.Options, clock clock.PassiveClock) func(context.Context, configmap.Watcher) *controller.Impl
NewController instantiates a new controller.Impl from knative.dev/pkg/controller
func ValidateEnumParam ¶ added in v0.54.0
ValidateEnumParam validates the param values are in the defined enum list in the corresponding paramSpecs if provided. A validation error is returned otherwise.
func ValidateResolvedTask ¶ added in v0.46.0
func ValidateResolvedTask(ctx context.Context, params []v1.Param, matrix *v1.Matrix, rtr *resources.ResolvedTask) error
ValidateResolvedTask validates that all parameters declared in the TaskSpec are present in the taskrun It also validates that all parameters have values, parameter types match the specified type and object params have all the keys required
Types ¶
type Reconciler ¶
type Reconciler struct { KubeClientSet kubernetes.Interface PipelineClientSet clientset.Interface Images pipeline.Images Clock clock.PassiveClock // contains filtered or unexported fields }
Reconciler implements controller.Reconciler for Configuration resources.
func (*Reconciler) ReconcileKind ¶ added in v0.14.0
func (c *Reconciler) ReconcileKind(ctx context.Context, tr *v1.TaskRun) pkgreconciler.Event
ReconcileKind compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the Task Run resource with the current status of the resource.