deployer

package
v4.2.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 26 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdVersion

func NewCmdVersion(fullName string, versionInfo version.Info, out io.Writer) *cobra.Command

NewCmdVersion provides a shim around version for non-client packages that require version information

func NewCommandDeployer

func NewCommandDeployer(name string) *cobra.Command

NewCommandDeployer provides a CLI handler for deploy.

Types

type Deployer

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

Deployer prepares and executes the deployment process. It will:

1. Validate the deployment has a desired replica count and strategy. 2. Find the last completed deployment. 3. Scale down to 0 any old deployments which aren't the new deployment or the last complete deployment. 4. Pass the last completed deployment and the new deployment to a strategy to perform the deployment.

func NewDeployer

func NewDeployer(kubeClient kubernetes.Interface, images imageclientv1.Interface, out, errOut io.Writer,
	until string) *Deployer

NewDeployer makes a new Deployer from a kube client.

func (*Deployer) Deploy

func (d *Deployer) Deploy(namespace, rcName string) error

Deploy starts the deployment process for rcName.

Directories

Path Synopsis
Package strategy contains implementations of core deployment strategies.
Package strategy contains implementations of core deployment strategies.
support
Package support is a library of code useful to any strategy.
Package support is a library of code useful to any strategy.

Jump to

Keyboard shortcuts

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