Documentation
¶
Index ¶
- Constants
- func GetMachineConfigNameForPools(pools []*mcfgv1.MachineConfigPool) string
- func MachineConfigGenerationLogLine(bCmdline bool, bootcmdline string) string
- func MakeTunedUniqueName(tunedName, nodePoolName string) string
- func NewMachineConfig(name string, annotations map[string]string, labels map[string]string, ...) *mcfgv1.MachineConfig
- type ComputedProfile
- type Controller
- type DuplicateProfileError
- type HypershiftRecommendedProfile
- type ProfileCalculator
- type RecommendedProfile
- type TunedRecommendInfo
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 MakeTunedUniqueName ¶
func NewMachineConfig ¶
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
type DuplicateProfileError ¶
type DuplicateProfileError struct {
// contains filtered or unexported fields
}
func (*DuplicateProfileError) Error ¶
func (e *DuplicateProfileError) Error() string
type ProfileCalculator ¶
type ProfileCalculator struct {
// contains filtered or unexported fields
}
func NewProfileCalculator ¶
func NewProfileCalculator(listers *ntoclient.Listers, clients *ntoclient.Clients) *ProfileCalculator
type RecommendedProfile ¶
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.
Click to show internal directories.
Click to hide internal directories.