controller

package
v0.15.1-0...-23e8066 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package controller contains logic for watching and synchronizing replicationControllers.

Index

Constants

View Source
const DefaultSyncPeriod = 5 * time.Second

Time period of main replication controller sync loop

Variables

This section is empty.

Functions

func FilterActivePods

func FilterActivePods(pods []api.Pod) []api.Pod

Helper function. Also used in pkg/registry/controller, for now.

Types

type PodControlInterface

type PodControlInterface interface {
	// contains filtered or unexported methods
}

PodControlInterface is an interface that knows how to add or delete pods created as an interface to allow testing.

type RealPodControl

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

RealPodControl is the default implementation of PodControllerInterface.

type ReplicationManager

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

ReplicationManager is responsible for synchronizing ReplicationController objects stored in the system with actual running pods.

func NewReplicationManager

func NewReplicationManager(kubeClient client.Interface) *ReplicationManager

NewReplicationManager creates a new ReplicationManager.

func (*ReplicationManager) Run

func (rm *ReplicationManager) Run(period time.Duration)

Run begins watching and syncing.

Directories

Path Synopsis
Package framework implements all the grunt work involved in running a simple controller.
Package framework implements all the grunt work involved in running a simple controller.

Jump to

Keyboard shortcuts

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