deploymentconfigs

package
v3.7.0-0.190.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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 *appsapi.DeploymentConfig, tagRetriever trigger.TagRetriever) (*appsapi.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 appsclient.DeploymentConfigsGetter
}

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