controller

package
v3.6.0-alpha.2+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFatal added in v1.1.2

func IsFatal(err error) bool

IsFatal returns true if err is a fatal error

Types

type BuildConfigController added in v1.0.5

type BuildConfigController struct {
	BuildConfigInstantiator buildclient.BuildConfigInstantiator
	BuildConfigGetter       buildclient.BuildConfigGetter
	BuildLister             buildclient.BuildLister
	BuildDeleter            buildclient.BuildDeleter
	// recorder is used to record events.
	Recorder record.EventRecorder
}

func (*BuildConfigController) HandleBuildConfig added in v1.0.5

func (c *BuildConfigController) HandleBuildConfig(bc *buildapi.BuildConfig) error

type BuildController

type BuildController struct {
	BuildUpdater      buildclient.BuildUpdater
	BuildLister       buildclient.BuildLister
	BuildConfigGetter buildclient.BuildConfigGetter
	BuildDeleter      buildclient.BuildDeleter
	PodManager        podManager
	BuildStrategy     BuildStrategy
	ImageStreamClient imageStreamClient
	Recorder          record.EventRecorder
	RunPolicies       []policy.RunPolicy
	BuildDefaults     builddefaults.BuildDefaults
	BuildOverrides    buildoverrides.BuildOverrides
}

BuildController watches build resources and manages their state

func (*BuildController) CancelBuild added in v1.0.4

func (bc *BuildController) CancelBuild(build *buildapi.Build) error

CancelBuild updates a build status to Cancelled, after its associated pod is deleted.

func (*BuildController) HandleBuild

func (bc *BuildController) HandleBuild(build *buildapi.Build) error

HandleBuild deletes pods for cancelled builds and takes new builds and puts them in the pending state after creating a corresponding pod

type BuildDeleteController

type BuildDeleteController struct {
	PodManager podManager
}

BuildDeleteController watches for builds being deleted and cleans up associated pods

func (*BuildDeleteController) HandleBuildDeletion

func (bc *BuildDeleteController) HandleBuildDeletion(build *buildapi.Build) error

HandleBuildDeletion deletes a build pod if the corresponding build has been deleted

type BuildStrategy

type BuildStrategy interface {
	CreateBuildPod(build *buildapi.Build) (*kapi.Pod, error)
}

BuildStrategy knows how to create a pod spec for a pod which can execute a build.

type ConfigControllerFatalError added in v1.1.2

type ConfigControllerFatalError struct {
	// Reason the fatal error occurred
	Reason string
}

ConfigControllerFatalError represents a fatal error while generating a build. An operation that fails because of a fatal error should not be retried.

func (*ConfigControllerFatalError) Error added in v1.1.2

Error returns the error string for this fatal error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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