sync

package
v0.0.0-...-e4e47dc Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

View Source
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

type BootcmdlineNotReadyError struct {
	PoolName string
	Message  string
}

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

Jump to

Keyboard shortcuts

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