deploymentconfig

package
v1.0.3 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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