nto

package
v0.0.0-...-091666d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

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

func ListProfiles(apiClient *clients.Settings, options ...goclient.ListOptions) ([]*Builder, error)

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 Pull

func Pull(apiClient *clients.Settings, name string) (*Builder, error)

Pull pulls existing PerformanceProfile from cluster.

func (*Builder) Create

func (builder *Builder) Create() (*Builder, error)

Create the PerformanceProfile in the cluster and store the created object in Object.

func (*Builder) Delete

func (builder *Builder) Delete() (*Builder, error)

Delete removes the PerformanceProfile.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given PerformanceProfile exists.

func (*Builder) Get

func (builder *Builder) Get() (*v2.PerformanceProfile, error)

Get fetches the defined PerformanceProfile from the cluster.

func (*Builder) Update

func (builder *Builder) Update(force bool) (*Builder, error)

Update renovates the existing PerformanceProfile object with the PerformanceProfile definition in builder.

func (*Builder) WithHugePages

func (builder *Builder) WithHugePages(hugePageSize string, hugePages []v2.HugePage) *Builder

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

func (builder *Builder) WithNumaTopology(topologyPolicy string) *Builder

WithNumaTopology defines the NumaTopologyPolicy in the PerformanceProfile.

func (*Builder) WithRTKernel

func (builder *Builder) WithRTKernel() *Builder

WithRTKernel defines the Real Time Kernel in the PerformanceProfile.

func (*Builder) WithWorkloadHints

func (builder *Builder) WithWorkloadHints(rtHint, perPodPowerMgmtHint, highPowerHint bool) *Builder

WithWorkloadHints defines the Workload Hints in the PerformanceProfile.

Jump to

Keyboard shortcuts

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