checks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DescriptionTwoWorkerNodesWCPUManagerRequired = "at least two worker nodes with cpumanager are required for migration"
)

Variables

This section is empty.

Functions

func ExpectAtLeastTwoWorkerNodesWithCPUManager added in v1.2.0

func ExpectAtLeastTwoWorkerNodesWithCPUManager(virtClient kubecli.KubevirtClient)

ExpectAtLeastTwoWorkerNodesWithCPUManager uses gomega.Expect to verify that the node list returned by libnode.GetWorkerNodesWithCPUManagerEnabled contains at least two elements. DescriptionTwoWorkerNodesWCPUManagerRequired is added to the default description via ginkgo.By

func Has2MiHugepages

func Has2MiHugepages(node *v1.Node) bool

func HasAtLeastTwoNodes added in v0.53.2

func HasAtLeastTwoNodes() bool

func HasFeature

func HasFeature(feature string) bool

func HasLiveMigration added in v0.52.0

func HasLiveMigration() bool

func IsARM64 added in v0.52.0

func IsARM64(arch string) bool

func IsCPUManagerPresent

func IsCPUManagerPresent(node *v1.Node) bool

func IsOpenShift added in v0.52.0

func IsOpenShift() bool

func IsRealtimeCapable added in v0.47.0

func IsRealtimeCapable(node *v1.Node) bool

func IsRunningOnKindInfra added in v1.2.0

func IsRunningOnKindInfra() bool

func IsSEVCapable added in v0.49.0

func IsSEVCapable(node *v1.Node, sevLabel string) bool

func RequireFeatureGateVirtHandlerRestart added in v1.0.0

func RequireFeatureGateVirtHandlerRestart(feature string) bool

func SkipIfARM64 added in v0.52.0

func SkipIfARM64(arch string, message string)

func SkipIfMigrationIsNotPossible added in v0.52.0

func SkipIfMigrationIsNotPossible()

func SkipIfMissingRequiredImage added in v0.52.0

func SkipIfMissingRequiredImage(virtClient kubecli.KubevirtClient, imageName string)

func SkipIfMultiReplica added in v0.52.0

func SkipIfMultiReplica(virtClient kubecli.KubevirtClient)

func SkipIfNoRhelImage added in v0.52.0

func SkipIfNoRhelImage(virtClient kubecli.KubevirtClient)

func SkipIfOpenShift added in v0.52.0

func SkipIfOpenShift(message string)

func SkipIfOpenShift4 added in v0.52.0

func SkipIfOpenShift4(message string)

func SkipIfPrometheusRuleIsNotEnabled added in v0.52.0

func SkipIfPrometheusRuleIsNotEnabled(virtClient kubecli.KubevirtClient)

func SkipIfRunningOnKindInfra added in v1.2.0

func SkipIfRunningOnKindInfra(message string)

func SkipIfSingleReplica added in v0.52.0

func SkipIfSingleReplica(virtClient kubecli.KubevirtClient)

func SkipIfUseFlannel added in v0.52.0

func SkipIfUseFlannel(virtClient kubecli.KubevirtClient)

func SkipTestIfNoCPUManager

func SkipTestIfNoCPUManager()

func SkipTestIfNoFeatureGate

func SkipTestIfNoFeatureGate(featureGate string)

func SkipTestIfNotEnoughNodesWith2MiHugepages added in v0.49.1

func SkipTestIfNotEnoughNodesWith2MiHugepages(nodeCount int)

func SkipTestIfNotEnoughNodesWithCPUManager added in v0.49.1

func SkipTestIfNotEnoughNodesWithCPUManager(nodeCount int)

func SkipTestIfNotEnoughNodesWithCPUManagerWith2MiHugepages added in v0.47.0

func SkipTestIfNotEnoughNodesWithCPUManagerWith2MiHugepages(nodeCount int)

func SkipTestIfNotRealtimeCapable added in v0.47.0

func SkipTestIfNotRealtimeCapable()

func SkipTestIfNotSEVCapable added in v0.49.0

func SkipTestIfNotSEVCapable()

func SkipTestIfNotSEVESCapable added in v1.0.0

func SkipTestIfNotSEVESCapable()

Types

This section is empty.

Jump to

Keyboard shortcuts

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