deploymentconfigs

package
v3.6.0-rc.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeploymentConfigTriggerIndexer

func NewDeploymentConfigTriggerIndexer(prefix string) trigger.Indexer

func UpdateDeploymentConfigImages

func UpdateDeploymentConfigImages(dc *deployapi.DeploymentConfig, tagRetriever trigger.TagRetriever) (*deployapi.DeploymentConfig, bool, error)

UpdateDeploymentConfigImages sets the latest image value from all triggers onto each container, returning false if one or more triggers could not be resolved yet or an error. The returned dc will be copied if mutated.

Types

type DeploymentConfigReactor

type DeploymentConfigReactor struct {
	Client client.DeploymentConfigsNamespacer
}

DeploymentConfigReactor converts image trigger changes into updates on deployments.

func (*DeploymentConfigReactor) ImageChanged

func (r *DeploymentConfigReactor) ImageChanged(obj interface{}, tagRetriever trigger.TagRetriever) error

ImageChanged is passed a deployment config and a set of changes.

Jump to

Keyboard shortcuts

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