Documentation ¶
Index ¶
- Constants
- func GetMachineConfigNameForPools(pools []*mcfgv1.MachineConfigPool) string
- func MachineConfigGenerationLogLine(bCmdline bool, bootcmdline string) string
- func NewMachineConfig(name string, annotations map[string]string, labels map[string]string, ...) *mcfgv1.MachineConfig
- func TunedProfiles(tunedSlice []*tunedv1.Tuned) []tunedv1.TunedProfile
- func TunedRecommend(tunedSlice []*tunedv1.Tuned) []tunedv1.TunedRecommend
- type Controller
- type ProfileCalculator
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 NewMachineConfig ¶
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
type ProfileCalculator ¶
type ProfileCalculator struct {
// contains filtered or unexported fields
}
func NewProfileCalculator ¶
func NewProfileCalculator(listers *ntoclient.Listers, clients *ntoclient.Clients) *ProfileCalculator
Click to show internal directories.
Click to hide internal directories.