deployment

package
v1.3.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: Apache-2.0 Imports: 18 Imported by: ? 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

View Source
const (
	// We must avoid creating processing deployment configs until the deployment config and image
	// stream stores have synced. If it hasn't synced, to avoid a hot loop, we'll wait this long
	// between checks.
	StoreSyncedPollPeriod = 100 * time.Millisecond
)

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.

func NewDeploymentController added in v1.3.0

func NewDeploymentController(rcInformer, podInformer framework.SharedIndexInformer, kc kclient.Interface, sa, image string, env []kapi.EnvVar, codec runtime.Codec) *DeploymentController

NewDeploymentController creates a new DeploymentController.

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. Since this controller started using caches, the provided rc MUST be deep-copied beforehand (see work() in factory.go).

func (*DeploymentController) Run added in v1.3.0

func (c *DeploymentController) Run(workers int, stopCh <-chan struct{})

Run begins watching and syncing.

Jump to

Keyboard shortcuts

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