Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildConfigController ¶
type BuildConfigController struct { BuildConfigInstantiator buildclient.BuildConfigInstantiator // recorder is used to record events. Recorder record.EventRecorder }
func (*BuildConfigController) HandleBuildConfig ¶
func (c *BuildConfigController) HandleBuildConfig(bc *buildapi.BuildConfig) error
type BuildController ¶
type BuildController struct { BuildUpdater buildclient.BuildUpdater BuildLister buildclient.BuildLister 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 ¶
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 BuildPodController ¶
type BuildPodController struct { BuildStore cache.Store BuildUpdater buildclient.BuildUpdater SecretClient kcoreclient.SecretsGetter PodManager podManager RunPolicies []policy.RunPolicy }
BuildPodController watches pods running builds and manages the build state
type BuildPodDeleteController ¶
type BuildPodDeleteController struct { BuildStore cache.Store BuildUpdater buildclient.BuildUpdater }
BuildPodDeleteController watches pods running builds and updates the build if the pod is deleted
func (*BuildPodDeleteController) HandleBuildPodDeletion ¶
func (bc *BuildPodDeleteController) HandleBuildPodDeletion(pod *kapi.Pod) error
HandleBuildPodDeletion sets the status of a build to error if the build pod has been deleted
type BuildStrategy ¶
BuildStrategy knows how to create a pod spec for a pod which can execute a build.
type ConfigControllerFatalError ¶
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 ¶
func (e *ConfigControllerFatalError) Error() string
Error returns the error string for this fatal error
type ImageChangeController ¶
type ImageChangeController struct { BuildConfigIndex oscache.StoreToBuildConfigLister BuildConfigInstantiator buildclient.BuildConfigInstantiator }
ImageChangeController watches for changes to ImageRepositories and triggers builds when a new version of a tag referenced by a BuildConfig is available.
func (*ImageChangeController) HandleImageStream ¶
func (c *ImageChangeController) HandleImageStream(stream *imageapi.ImageStream) error
HandleImageStream processes the next ImageStream event.