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) WithHugePages(hugePageSize string, hugePages []v2.HugePage) *Builder
- func (builder *Builder) WithMachineConfigPoolSelector(machineConfigPoolSelector 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
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) 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) 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.