tekton

package
v0.0.715 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProwImplicitGitResource is the keyword used to signal generating Tekton pipelines' git resources dynamically
	ProwImplicitGitResource = "PROW_IMPLICIT_GIT_REF"
)

Variables

This section is empty.

Functions

func ConvertPipelineRun

func ConvertPipelineRun(pr *v1beta1.PipelineRun) *v1alpha1.ActivityRecord

ConvertPipelineRun translates a PipelineRun into an ActivityRecord

func RateLimiter

func RateLimiter() workqueue.RateLimitingInterface

RateLimiter creates a ratelimiting queue for the foghorn controller.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller listens for changes to PipelineRuns and updates the corresponding LighthouseJobs with their activity

func NewController

func NewController(kubeClient kubernetes.Interface, tektonClient tektonclient.Interface, lhClient clientset.Interface, prInformer tektoninformers.PipelineRunInformer,
	lhInformer lhinformers.LighthouseJobInformer, ns string, dashboardURL string, logger *logrus.Entry) (*Controller, error)

NewController returns a new controller for syncing PipelineRun updates to LighthouseJobs and commit statuses

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Run actually runs the controller

Jump to

Keyboard shortcuts

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