recreate

package
v0.0.0-...-6079644 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentStrategy

type DeploymentStrategy struct {
	// ReplicationController is used to interact with ReplicatonControllers.
	ReplicationController ReplicationControllerInterface
	// Codec is used to decode DeploymentConfigs contained in deployments.
	Codec runtime.Codec
}

DeploymentStrategy is a simple strategy appropriate as a default. Its behavior is to increase the replica count of the new deployment to 1, and to decrease the replica count of previous deployments to zero.

A failure to disable any existing deployments will be considered a deployment failure.

func (*DeploymentStrategy) Deploy

func (s *DeploymentStrategy) Deploy(deployment *kapi.ReplicationController, oldDeployments []kapi.ObjectReference) error

Deploy makes deployment active and disables oldDeployments.

type RealReplicationController

type RealReplicationController struct {
	KubeClient kclient.Interface
}

type ReplicationControllerInterface

type ReplicationControllerInterface interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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