netenv

package
v0.0.0-...-d667782 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFDHasStatus

func BFDHasStatus(frrPod *pod.Builder, bfdPeer string, status string) error

BFDHasStatus verifies that BFD session on a pod has given status.

func DeployPerformanceProfile

func DeployPerformanceProfile(
	apiClient *clients.Settings,
	netConfig *netconfig.NetworkConfig,
	profileName string,
	isolatedCPU string,
	reservedCPU string,
	hugePages1GCount int32) error

DeployPerformanceProfile installs performanceProfile on cluster.

func DoesClusterHasEnoughNodes

func DoesClusterHasEnoughNodes(
	apiClient *clients.Settings,
	netConfig *netconfig.NetworkConfig,
	requiredCPNodeNumber int,
	requiredWorkerNodeNumber int) error

DoesClusterHasEnoughNodes verifies if given cluster has enough nodes to run tests.

func IsSriovDeployed

func IsSriovDeployed(apiClient *clients.Settings, netConfig *netconfig.NetworkConfig) error

IsSriovDeployed verifies that the sriov operator is deployed.

func MapFirstKeyValue

func MapFirstKeyValue(inputMap map[string]string) (string, string)

MapFirstKeyValue returns the first key-value pair found in the input map. If the input map is empty, it returns empty strings.

func WaitForMcpStable

func WaitForMcpStable(apiClient *clients.Settings, waitingTime, stableDuration time.Duration, mcpName string) error

WaitForMcpStable waits for the stability of the MCP with the given name.

func WaitForSriovAndMCPStable

func WaitForSriovAndMCPStable(
	apiClient *clients.Settings, waitingTime, stableDuration time.Duration, mcpName, sriovOperatorNamespace string) error

WaitForSriovAndMCPStable waits until SR-IOV and MCP stable.

func WaitForSriovStable

func WaitForSriovStable(apiClient *clients.Settings, waitingTime time.Duration, sriovOperatorNamespace string) error

WaitForSriovStable waits until all the SR-IOV node states are in sync.

Types

This section is empty.

Jump to

Keyboard shortcuts

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