rolling

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: Apache-2.0 Imports: 15 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 AcceptorInterval = 1 * time.Second

AcceptorInterval is how often the UpdateAcceptor should check for readiness.

View Source
const DefaultApiRetryPeriod = 1 * time.Second
View Source
const DefaultApiRetryTimeout = 10 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type RollingDeploymentStrategy

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

RollingDeploymentStrategy is a Strategy which implements rolling deployments using the upstream Kubernetes RollingUpdater.

Currently, there are some caveats:

1. When there is no existing prior deployment, deployment delegates to another strategy. 2. The interface to the RollingUpdater is not very clean.

These caveats can be resolved with future upstream refactorings to RollingUpdater[1][2].

[1] https://github.com/kubernetes/kubernetes/pull/7183 [2] https://github.com/kubernetes/kubernetes/issues/7851

func NewRollingDeploymentStrategy

func NewRollingDeploymentStrategy(namespace string, client kclient.Interface, codec runtime.Codec, initialStrategy acceptingDeploymentStrategy) *RollingDeploymentStrategy

NewRollingDeploymentStrategy makes a new RollingDeploymentStrategy.

func (*RollingDeploymentStrategy) Deploy

Jump to

Keyboard shortcuts

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