zone_tracker

package
v0.0.0-...-00dcad8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// UnknownZone is used to distinguish nodes that don't have zone label.
	// If a node doesn't get zone label for 30 Seconds, UnknownZone will be removed from the zones set.
	// This label is needed to allow nodes some time to get/restore their zone label without all their
	// status messages being removed.
	UnknownZone = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ZoneTracker

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

ZoneTracker collects information about existing zones based on nodes annotations. Subscribe method may be used to subscribe to zones updates.

func NewZoneTracker

func NewZoneTracker(nodeInformer coreinformers.NodeInformer, onZonesUpdate func(newZones sets.Set[string])) *ZoneTracker

func (*ZoneTracker) Start

func (zt *ZoneTracker) Start() error

func (*ZoneTracker) Stop

func (zt *ZoneTracker) Stop()

Jump to

Keyboard shortcuts

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