testing

package
v0.0.0-...-eb1cee9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HugePageSize defines the huge page size used for tests
	HugePageSize = performancev2.HugePageSize("1G")
	// HugePagesCount defines the huge page count used for tests
	HugePagesCount = 4
	// IsolatedCPUs defines the isolated CPU set used for tests
	IsolatedCPUs = performancev2.CPUSet("4-5")
	// ReservedCPUs defines the reserved CPU set used for tests
	ReservedCPUs = performancev2.CPUSet("0-3")
	// OfflinedCPUs defines the Offline CPU set used for tests
	OfflinedCPUs = performancev2.CPUSet("6-7")
	// SharedCPUs defines the shared CPU set used for tests
	SharedCPUs = performancev2.CPUSet("8-9")
	// SingleNUMAPolicy defines the topologyManager policy used for tests
	SingleNUMAPolicy = "single-numa-node"

	// MachineConfigLabelKey defines the MachineConfig label key of the test profile
	MachineConfigLabelKey = "mcKey"
	// MachineConfigLabelValue defines the MachineConfig label vlue of the test profile
	MachineConfigLabelValue = "mcValue"
	// MachineConfigPoolLabelKey defines the MachineConfigPool label key of the test profile
	MachineConfigPoolLabelKey = "mcpKey"
	// MachineConfigPoolLabelValue defines the MachineConfigPool label value of the test profile
	MachineConfigPoolLabelValue = "mcpValue"
)

Variables

View Source
var AdditionalKernelArgs = []string{"audit=0", "processor.max_cstate=1", "idle=poll", "intel_idle.max_cstate=0"}

Additional Kernel Args

Functions

func NewClusterOperator

func NewClusterOperator() *apiconfigv1.ClusterOperator

func NewContainerRuntimeConfig

func NewContainerRuntimeConfig(runtime mcov1.ContainerRuntimeDefaultRuntime, mcpSelector map[string]string) *mcov1.ContainerRuntimeConfig

func NewInfraResource

func NewInfraResource(pin bool) *apiconfigv1.Infrastructure

func NewPerformanceProfile

func NewPerformanceProfile(name string) *performancev2.PerformanceProfile

NewPerformanceProfile returns new performance profile object that used for tests

func NewProfileMCP

func NewProfileMCP() *mcov1.MachineConfigPool

NewProfileMCP returns new MCP used for testing

func NewProfileMachineConfig

func NewProfileMachineConfig(name string, kernelArgs []string) *mcov1.MachineConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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