condition

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager 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. Manager 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). Manager synchronizes with apiserver every resyncPeriod no matter there is node condition update or not. This addresses 3).

func NewManager

func NewManager(log logrus.FieldLogger, client problemclient.Client, clock clock.WithTicker, heartbeatPeriod time.Duration) Manager

NewManager creates a condition manager.

Jump to

Keyboard shortcuts

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