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()
Click to show internal directories.
Click to hide internal directories.