Documentation
¶
Overview ¶
Package sync provides synchronization primitives for coordinating between the operator controller and the PerformanceProfile controller. This is used to ensure creating and updating MachineConfigs by both controllers is synchronized as much as possible to prevent multiple reboots.
Index ¶
Constants ¶
const ( // Maximum number of (MachineConfig or node) pools for a cluster to guarantee an immediate // PerformanceProfile reconciliation. PoolsMax = 1024 )
Variables ¶
This section is empty.
Functions ¶
func GetBootcmdlineSync ¶
func GetBootcmdlineSync() *bootcmdlineSync
GetBootcmdlineSync returns the global bootcmdlineSync instance.
Types ¶
type BootcmdlineNotReadyError ¶
BootcmdlineNotReadyError is returned when the bootcmdline sync signal hasn't been received yet. This error indicates that the PerformanceProfile controller should requeue and wait for the operator controller to signal that bootcmdline is ready. The operator controller will trigger immediate reconciliation by SignalReady(). The requeue PerformanceProfile controller's interval serves only as a fallback.
func (*BootcmdlineNotReadyError) Error ¶
func (e *BootcmdlineNotReadyError) Error() string