kubernetesk8s.io/kubernetes/pkg/controller/deployment Index | Files

package deployment

import "k8s.io/kubernetes/pkg/controller/deployment"

Index

Constants

const (
	// FullDeploymentResyncPeriod means we'll attempt to recompute the required replicas
	// of all deployments that have fulfilled their expectations at least this often.
	// This recomputation happens based on contents in the local caches.
	FullDeploymentResyncPeriod = 30 * time.Second
	// We must avoid creating new rc until the rc store has synced. If it hasn't synced, to
	// avoid a hot loop, we'll wait this long between checks.
	RcStoreSyncedPollPeriod = 100 * time.Millisecond
)

Types

type DeploymentController

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

DeploymentController is responsible for synchronizing Deployment objects stored in the system with actual running rcs and pods.

func NewDeploymentController

func NewDeploymentController(client client.Interface, resyncPeriod controller.ResyncPeriodFunc) *DeploymentController

NewDeploymentController creates a new DeploymentController.

func (*DeploymentController) Run

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

Run begins watching and syncing.

Source Files

deployment_controller.go

Version
v1.2.0-alpha.6
Published
Jan 13, 2016
Platform
js/wasm
Imports
17 packages
Last checked
3 minutes ago

Tools for package owners.