deployment

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentController

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

DeploymentController starts a deployment by creating a deployer pod which implements a deployment strategy. The status of the deployment will follow the status of the deployer pod. The deployer pod is correlated to the deployment with annotations.

When the deployment enters a terminal status:

  1. If the deployment finished normally, the deployer pod is deleted.
  2. If the deployment failed, the deployer pod is not deleted.

Use the DeploymentControllerFactory to create this controller.

func (*DeploymentController) Handle

func (c *DeploymentController) Handle(deployment *kapi.ReplicationController) error

Handle processes deployment and either creates a deployer pod or responds to a terminal deployment status.

type DeploymentControllerFactory

type DeploymentControllerFactory struct {
	// KubeClient is a Kubernetes client.
	KubeClient kclient.Interface
	// Codec is used for encoding/decoding.
	Codec runtime.Codec
	// ServiceAccount is the service account name to run deployer pods as
	ServiceAccount string
	// Environment is a set of environment which should be injected into all deployer pod containers.
	Environment []kapi.EnvVar
	// DeployerImage specifies which Docker image can support the default strategies.
	DeployerImage string
}

DeploymentControllerFactory can create a DeploymentController that creates deployer pods in a configurable way.

func (*DeploymentControllerFactory) Create

Create creates a DeploymentController.

Jump to

Keyboard shortcuts

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