populator

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package populator implements interfaces that monitor and keep the states of the desired_state_of_word in sync with the "ground truth" from informer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DesiredStateOfWorldPopulator

type DesiredStateOfWorldPopulator interface {
	Run(stopCh <-chan struct{})
}

DesiredStateOfWorldPopulator periodically verifies that the pods in the desired state of th world still exist, if not, it removes them. TODO: it also loops through the list of active pods and ensures that each one exists in the desired state of the world cache if it has volumes.

func NewDesiredStateOfWorldPopulator

func NewDesiredStateOfWorldPopulator(
	loopSleepDuration time.Duration,
	podInformer kcache.SharedInformer,
	desiredStateOfWorld cache.DesiredStateOfWorld) DesiredStateOfWorldPopulator

NewDesiredStateOfWorldPopulator returns a new instance of DesiredStateOfWorldPopulator. loopSleepDuration - the amount of time the populator loop sleeps between

successive executions

podManager - the kubelet podManager that is the source of truth for the pods

that exist on this host

desiredStateOfWorld - the cache to populate

Jump to

Keyboard shortcuts

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