Documentation ¶
Index ¶
- func CleanAllPerformanceProfiles(apiClient *clients.Settings, options ...goclient.ListOptions) error
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() (*Builder, error)
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*v2.PerformanceProfile, error)
- func (builder *Builder) Update(force bool) (*Builder, error)
- func (builder *Builder) WithAdditionalKernelArgs(additionalKernelArgs []string) *Builder
- func (builder *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (builder *Builder) WithGloballyDisableIrqLoadBalancing() *Builder
- func (builder *Builder) WithHugePages(hugePageSize string, hugePages []v2.HugePage) *Builder
- func (builder *Builder) WithMachineConfigPoolSelector(machineConfigPoolSelector map[string]string) *Builder
- func (builder *Builder) WithNet(userLevelNetworking bool, devices []v2.Device) *Builder
- func (builder *Builder) WithNodeSelector(nodeSelector map[string]string) *Builder
- func (builder *Builder) WithNumaTopology(topologyPolicy string) *Builder
- func (builder *Builder) WithRTKernel() *Builder
- func (builder *Builder) WithWorkloadHints(rtHint, perPodPowerMgmtHint, highPowerHint bool) *Builder
- type TunedBuilder
- func (builder *TunedBuilder) Create() (*TunedBuilder, error)
- func (builder *TunedBuilder) Delete() (*TunedBuilder, error)
- func (builder *TunedBuilder) Exists() bool
- func (builder *TunedBuilder) Get() (*tunedv1.Tuned, error)
- func (builder *TunedBuilder) Update() (*TunedBuilder, error)
- func (builder *TunedBuilder) WithProfile(profile tunedv1.TunedProfile) *TunedBuilder
- func (builder *TunedBuilder) WithRecommend(recommend tunedv1.TunedRecommend) *TunedBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanAllPerformanceProfiles ¶
func CleanAllPerformanceProfiles(apiClient *clients.Settings, options ...goclient.ListOptions) error
CleanAllPerformanceProfiles removes all PerformanceProfiles installed on a cluster.
Types ¶
type Builder ¶
type Builder struct { // PerformanceProfile definition, used to create the PerformanceProfile object. Definition *v2.PerformanceProfile // Created PerformanceProfile object. Object *v2.PerformanceProfile // contains filtered or unexported fields }
Builder provides a struct for PerformanceProfile object from the cluster and a PerformanceProfile definition.
func ListProfiles ¶
ListProfiles returns a list of all installed PerformanceProfiles.
func NewBuilder ¶
func NewBuilder( apiClient *clients.Settings, name, cpuIsolated, cpuReserved string, nodeSelector map[string]string) *Builder
NewBuilder creates a new instance of Builder.
func (*Builder) Create ¶
Create the PerformanceProfile in the cluster and store the created object in Object.
func (*Builder) Get ¶
func (builder *Builder) Get() (*v2.PerformanceProfile, error)
Get fetches the defined PerformanceProfile from the cluster.
func (*Builder) Update ¶
Update renovates the existing PerformanceProfile object with the PerformanceProfile definition in builder.
func (*Builder) WithAdditionalKernelArgs ¶
WithAdditionalKernelArgs defines the additionalKernelArgs in the PerformanceProfile.
func (*Builder) WithAnnotations ¶
WithAnnotations defines the annotations in the PerformanceProfile.
func (*Builder) WithGloballyDisableIrqLoadBalancing ¶
WithGloballyDisableIrqLoadBalancing defines the globallyDisableIrqLoadBalancing in the PerformanceProfile.
func (*Builder) WithHugePages ¶
WithHugePages defines the HugePages in the PerformanceProfile. hugePageSize allowed values are 2M, 1G.
func (*Builder) WithMachineConfigPoolSelector ¶
func (builder *Builder) WithMachineConfigPoolSelector(machineConfigPoolSelector map[string]string) *Builder
WithMachineConfigPoolSelector defines the MachineConfigPoolSelector in the PerformanceProfile.
func (*Builder) WithNodeSelector ¶
WithNodeSelector defines the nodeSelector in the PerformanceProfile.
func (*Builder) WithNumaTopology ¶
WithNumaTopology defines the NumaTopologyPolicy in the PerformanceProfile.
func (*Builder) WithRTKernel ¶
WithRTKernel defines the Real Time Kernel in the PerformanceProfile.
func (*Builder) WithWorkloadHints ¶
WithWorkloadHints defines the Workload Hints in the PerformanceProfile.
type TunedBuilder ¶
type TunedBuilder struct { // Tuned definition, used to create the Tuned object. Definition *tunedv1.Tuned // Created Tuned object. Object *tunedv1.Tuned // contains filtered or unexported fields }
TunedBuilder provides a struct for Tuned object from the cluster and a Tuned definition.
func NewTunedBuilder ¶
func NewTunedBuilder( apiClient *clients.Settings, name, nsname string) *TunedBuilder
NewTunedBuilder creates a new instance of TunedBuilder.
func PullTuned ¶
func PullTuned(apiClient *clients.Settings, name, nsname string) (*TunedBuilder, error)
PullTuned pulls existing Tuned from cluster.
func (*TunedBuilder) Create ¶
func (builder *TunedBuilder) Create() (*TunedBuilder, error)
Create makes a tuned in the cluster and stores the created object in struct.
func (*TunedBuilder) Delete ¶
func (builder *TunedBuilder) Delete() (*TunedBuilder, error)
Delete removes tuned from a cluster.
func (*TunedBuilder) Exists ¶
func (builder *TunedBuilder) Exists() bool
Exists checks whether the given tuned exists.
func (*TunedBuilder) Get ¶
func (builder *TunedBuilder) Get() (*tunedv1.Tuned, error)
Get fetches the defined Tuned from the cluster.
func (*TunedBuilder) Update ¶
func (builder *TunedBuilder) Update() (*TunedBuilder, error)
Update renovates the existing tuned object with tuned definition in builder.
func (*TunedBuilder) WithProfile ¶
func (builder *TunedBuilder) WithProfile( profile tunedv1.TunedProfile) *TunedBuilder
WithProfile sets the tuned operator's profile.
func (*TunedBuilder) WithRecommend ¶
func (builder *TunedBuilder) WithRecommend( recommend tunedv1.TunedRecommend) *TunedBuilder
WithRecommend sets the tuned operator's recommend.