condition

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 9 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionManager

type ConditionManager interface {
	// Start starts the condition manager.
	Start()
	// UpdateCondition updates a specific condition.
	UpdateCondition(types.Condition)
	// GetConditions returns all current conditions.
	GetConditions() []types.Condition
}

ConditionManager synchronizes node conditions with the apiserver with problem client. It makes sure that: 1) Node conditions are updated to apiserver as soon as possible. 2) Node problem detector won't flood apiserver. 3) No one else could change the node conditions maintained by node problem detector. ConditionManager checks every updatePeriod to see whether there is node condition update. If there are any, it will synchronize with the apiserver. This addresses 1) and 2). ConditionManager synchronizes with apiserver every resyncPeriod no matter there is node condition update or not. This addresses 3).

func NewConditionManager

func NewConditionManager(client problemclient.Client, clock clock.Clock) ConditionManager

NewConditionManager creates a condition manager.

Jump to

Keyboard shortcuts

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