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 ReplicationControllerInterface ¶
type ReplicationControllerInterface interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.