libnode

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SchedulableNode = ""

Functions

func AddAnnotationToNode added in v0.54.0

func AddAnnotationToNode(nodeName, key, value string) *k8sv1.Node

func AddLabelToNode

func AddLabelToNode(nodeName, key, value string) *k8sv1.Node

func CleanNodes

func CleanNodes()

func ExecuteCommandOnNodeThroughVirtHandler added in v1.3.0

func ExecuteCommandOnNodeThroughVirtHandler(nodeName string, command []string) (stdout, stderr string, err error)

func GetAllSchedulableNodes

func GetAllSchedulableNodes(virtClient kubecli.KubevirtClient) *k8sv1.NodeList

GetAllSchedulableNodes returns list of Nodes which are "KubeVirt" schedulable.

func GetArch

func GetArch() string

func GetControlPlaneNodes added in v1.1.0

func GetControlPlaneNodes(virtCli kubecli.KubevirtClient) *k8sv1.NodeList

func GetHighestCPUNumberAmongNodes

func GetHighestCPUNumberAmongNodes(virtClient kubecli.KubevirtClient) int

func GetNodeDrainKey

func GetNodeDrainKey() string

func GetNodeHostModel added in v1.3.0

func GetNodeHostModel(node *k8sv1.Node) (hostModel string)

func GetNodeWithHugepages

func GetNodeWithHugepages(virtClient kubecli.KubevirtClient, hugepages k8sv1.ResourceName) *k8sv1.Node

func GetNodesWithKVM

func GetNodesWithKVM() []*k8sv1.Node

func GetSupportedCPUFeatures added in v1.3.0

func GetSupportedCPUFeatures(nodesList k8sv1.NodeList) []string

func GetSupportedCPUModels added in v1.3.0

func GetSupportedCPUModels(nodeList k8sv1.NodeList) []string

func GetVirtHandlerPod added in v0.58.1

func GetVirtHandlerPod(virtCli kubecli.KubevirtClient, nodeName string) (*k8sv1.Pod, error)

func GetWorkerNodesWithCPUManagerEnabled added in v1.2.0

func GetWorkerNodesWithCPUManagerEnabled(virtClient kubecli.KubevirtClient) []k8sv1.Node

func RemoveAnnotationFromNode added in v0.55.0

func RemoveAnnotationFromNode(nodeName, key string) *k8sv1.Node

func RemoveLabelFromNode

func RemoveLabelFromNode(nodeName, key string) *k8sv1.Node

func SetNodeSchedulable added in v0.56.0

func SetNodeSchedulable(nodeName string, virtCli kubecli.KubevirtClient)

func SetNodeUnschedulable added in v0.56.0

func SetNodeUnschedulable(nodeName string, virtCli kubecli.KubevirtClient)

func Taint

func Taint(nodeName, key string, effect k8sv1.TaintEffect)

func TemporaryNodeDrain added in v1.4.0

func TemporaryNodeDrain(nodeName string)

TemporaryNodeDrain also sets the `NoSchedule` taint on the node. nodes with this taint will be reset to their original state on each test teardown by the test framework. Check `libnode.CleanNodes`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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