Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildController ¶
type BuildController struct { BuildStore cache.Store NextBuild func() *buildapi.Build NextPod func() *kapi.Pod BuildUpdater buildclient.BuildUpdater PodManager podManager BuildStrategy BuildStrategy ImageRepositoryClient imageRepositoryClient }
BuildController watches build resources and manages their state
func (*BuildController) CancelBuild ¶ added in v0.2.1
CancelBuild updates a build status to Cancelled, after its associated pod is associated.
func (*BuildController) HandleBuild ¶
func (bc *BuildController) HandleBuild(build *buildapi.Build)
func (*BuildController) HandlePod ¶
func (bc *BuildController) HandlePod(pod *kapi.Pod)
func (*BuildController) Run ¶
func (bc *BuildController) Run()
Run begins watching and syncing build jobs onto the cluster.
type BuildStrategy ¶
BuildStrategy knows how to create a pod spec for a pod which can execute a build.
type ImageChangeController ¶ added in v0.2.1
type ImageChangeController struct { NextImageRepository func() *imageapi.ImageRepository BuildConfigStore cache.Store BuildCreator buildclient.BuildCreator BuildConfigUpdater buildclient.BuildConfigUpdater // Stop is an optional channel that controls when the controller exits Stop <-chan struct{} }
ImageChangeController watches for changes to ImageRepositories and triggers builds when a new version of a tag referenced by a BuildConfig is available.
func (*ImageChangeController) HandleImageRepo ¶ added in v0.2.1
func (c *ImageChangeController) HandleImageRepo()
HandleImageRepo processes the next ImageRepository event.
func (*ImageChangeController) Run ¶ added in v0.2.1
func (c *ImageChangeController) Run()
Run processes ImageRepository events one by one.
Click to show internal directories.
Click to hide internal directories.