Version: v0.9.2 Latest Latest

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 42 Imported by: 0




This section is empty.


This section is empty.


func CheckTimeout

func CheckTimeout(tr *v1alpha1.TaskRun) bool

func NewController

func NewController(images pipeline.Images) func(context.Context, configmap.Watcher) *controller.Impl

func ValidateResolvedTaskResources

func ValidateResolvedTaskResources(params []v1alpha1.Param, rtr *resources.ResolvedTaskResources) error

ValidateResolvedTaskResources validates task inputs, params and output matches taskrun


type DeletePod

type DeletePod func(podName string, options *metav1.DeleteOptions) error

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields

Reconciler implements controller.Reconciler for Configuration resources.

func (*Reconciler) Reconcile

func (c *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile 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.

type Recorder added in v0.8.0

type Recorder struct {
	// contains filtered or unexported fields

func NewRecorder added in v0.8.0

func NewRecorder() (*Recorder, error)

NewRecorder creates a new metrics recorder instance to log the TaskRun related metrics

func (*Recorder) DurationAndCount added in v0.8.0

func (r *Recorder) DurationAndCount(tr *v1alpha1.TaskRun) error

DurationAndCount logs the duration of TaskRun execution and count for number of TaskRuns succeed or failed returns an error if its failed to log the metrics

func (*Recorder) RecordPodLatency added in v0.8.0

func (r *Recorder) RecordPodLatency(pod *corev1.Pod, tr *v1alpha1.TaskRun) error

RecordPodLatency logs the duration required to schedule the pod for TaskRun returns an error if its failed to log the metrics

func (*Recorder) RunningTaskRuns added in v0.8.0

func (r *Recorder) RunningTaskRuns(lister listers.TaskRunLister) error

RunningTaskRuns logs the number of TaskRuns running right now returns an error if its failed to log the metrics


Path Synopsis

Jump to

Keyboard shortcuts

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