condition

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

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