nto

package
v0.0.0-...-75a2d0c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

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) WithAdditionalKernelArgs

func (builder *Builder) WithAdditionalKernelArgs(additionalKernelArgs []string) *Builder

WithAdditionalKernelArgs defines the additionalKernelArgs in the PerformanceProfile.

func (*Builder) WithAnnotations

func (builder *Builder) WithAnnotations(annotations map[string]string) *Builder

WithAnnotations defines the annotations in the PerformanceProfile.

func (*Builder) WithGloballyDisableIrqLoadBalancing

func (builder *Builder) WithGloballyDisableIrqLoadBalancing() *Builder

WithGloballyDisableIrqLoadBalancing defines the globallyDisableIrqLoadBalancing in the PerformanceProfile.

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) WithNet

func (builder *Builder) WithNet(userLevelNetworking bool, devices []v2.Device) *Builder

WithNet defines the net in the PerformanceProfile.

func (*Builder) WithNodeSelector

func (builder *Builder) WithNodeSelector(nodeSelector map[string]string) *Builder

WithNodeSelector defines the nodeSelector 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.

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.

Jump to

Keyboard shortcuts

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