deploymentconfig

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentConfigController

type DeploymentConfigController struct {
	// contains filtered or unexported fields
}

DeploymentConfigController is responsible for creating a new deployment when:

  1. The config version is > 0 and,
  2. No existing deployment for that version exists.

The responsibility of constructing a new deployment resource from a config is delegated. See util.MakeDeployment for more details. The new deployment will have DesiredReplicasAnnotation set to the desired replica count for the new deployment based on the replica count of the previous/active deployment.

Use the DeploymentConfigControllerFactory to create this controller.

func (*DeploymentConfigController) Handle

Handle processes config and creates a new deployment if necessary.

type DeploymentConfigControllerFactory

type DeploymentConfigControllerFactory struct {
	// Client is an OpenShift client.
	Client osclient.Interface
	// KubeClient is a Kubernetes client.
	KubeClient kclient.Interface
	// Codec is used to encode/decode.
	Codec runtime.Codec
}

DeploymentConfigControllerFactory can create a DeploymentConfigController which obtains DeploymentConfigs from a queue populated from a watch of all DeploymentConfigs.

func (*DeploymentConfigControllerFactory) Create

Create creates a DeploymentConfigController.

Jump to

Keyboard shortcuts

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