operator

package
v0.0.0-...-dd2698c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 49 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 NewMachineConfig

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

func TunedProfiles

func TunedProfiles(tunedSlice []*tunedv1.Tuned) []tunedv1.TunedProfile

TunedRecommend returns a name-sorted TunedProfile slice out of a slice of Tuned objects.

func TunedRecommend

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

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

Types

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 ProfileCalculator

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

func NewProfileCalculator

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

Jump to

Keyboard shortcuts

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