operator

package
v0.0.0-...-899ff33 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneratedByControllerVersionAnnotationKey string = "tuned.openshift.io/generated-by-controller-version"
	MachineConfigPrefix                       string = "50-nto"
)

Variables

This section is empty.

Functions

func GetMachineConfigNameForPools

func GetMachineConfigNameForPools(pools []*mcfgv1.MachineConfigPool) string

GetMachineConfigNameForPools takes pools a slice of MachineConfigPools and returns a MachineConfig name to be used for MachineConfigPool based matching.

func MachineConfigGenerationLogLine

func MachineConfigGenerationLogLine(bCmdline bool, bootcmdline string) string

func MakeTunedUniqueName

func MakeTunedUniqueName(tunedName, nodePoolName string) string

func NewMachineConfig

func NewMachineConfig(name string, annotations map[string]string, labels map[string]string, kernelArguments []string) *mcfgv1.MachineConfig

Types

type ComputedProfile

type ComputedProfile struct {
	TunedProfileName string
	AllProfiles      []tunedv1.TunedProfile
	Deferred         util.DeferMode
	MCLabels         map[string]string
	NodePoolName     string
	Operand          tunedv1.OperandConfig
}

type Controller

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

Controller is the controller implementation for Tuned resources

func NewController

func NewController() (*Controller, error)

func (*Controller) NeedLeaderElection

func (c *Controller) NeedLeaderElection() bool

func (*Controller) Start

func (c *Controller) Start(ctx context.Context) error

type DuplicateProfileError

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

func (*DuplicateProfileError) Error

func (e *DuplicateProfileError) Error() string

type HypershiftRecommendedProfile

type HypershiftRecommendedProfile struct {
	TunedProfileName string
	Deferred         util.DeferMode
	NodePoolName     string
	Config           tunedv1.OperandConfig
}

type ProfileCalculator

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

func NewProfileCalculator

func NewProfileCalculator(listers *ntoclient.Listers, clients *ntoclient.Clients) *ProfileCalculator

type RecommendedProfile

type RecommendedProfile struct {
	TunedProfileName string
	Deferred         util.DeferMode
	Labels           map[string]string
	Config           tunedv1.OperandConfig
}

type TunedRecommendInfo

type TunedRecommendInfo struct {
	tunedv1.TunedRecommend
	Deferred util.DeferMode
}

func TunedRecommend

func TunedRecommend(tunedSlice []*tunedv1.Tuned) []TunedRecommendInfo

TunedRecommend returns a priority-sorted TunedRecommend slice out of a slice of Tuned objects for profile-calculation purposes.

Jump to

Keyboard shortcuts

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