build

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyReplacements added in v0.3.0

func ApplyReplacements(build *v1alpha1.Build, replacements map[string]string) *v1alpha1.Build

ApplyReplacements replaces placeholders for declared parameters with the specified replacements.

func ApplyTemplate added in v0.3.0

func ApplyTemplate(u *v1alpha1.Build, tmpl v1alpha1.BuildTemplateInterface) (*v1alpha1.Build, error)

ApplyTemplate applies the values in the template to the build, and replaces placeholders for declared parameters with the build's matching arguments.

func NewController

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

NewController returns a new build controller

Types

type Reconciler

type Reconciler struct {

	// Sugared logger is easier to use but is not as performant as the
	// raw logger. In performance critical paths, call logger.Desugar()
	// and use the returned raw logger instead. In addition to the
	// performance benefits, raw logger also preserves type-safety at
	// the expense of slightly greater verbosity.
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

Reconciler is the controller.Reconciler implementation for Builds resources

func (*Reconciler) Reconcile

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

Reconcile implements controller.Reconciler

type TimeoutSet added in v0.4.0

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

TimeoutSet contains required k8s interfaces to handle build timeouts

func NewTimeoutHandler added in v0.4.0

func NewTimeoutHandler(logger *zap.SugaredLogger,
	kubeclientset kubernetes.Interface,
	buildclientset clientset.Interface,
	stopCh <-chan struct{}) *TimeoutSet

NewTimeoutHandler returns TimeoutSet filled structure

func (*TimeoutSet) CheckTimeouts added in v0.4.0

func (t *TimeoutSet) CheckTimeouts()

CheckTimeouts walks through all builds and creates t.wait goroutines that handles build timeout

Directories

Path Synopsis
Package resources provides methods to convert a Build CRD to a k8s Pod resource.
Package resources provides methods to convert a Build CRD to a k8s Pod resource.

Jump to

Keyboard shortcuts

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