Documentation ¶
Index ¶
- Variables
- func AddAnnotationToNode(nodeName, key, value string) *k8sv1.Node
- func AddLabelToNode(nodeName, key, value string) *k8sv1.Node
- func CleanNodes()
- func ExecuteCommandOnNodeThroughVirtHandler(nodeName string, command []string) (stdout, stderr string, err error)
- func GetAllSchedulableNodes(virtClient kubecli.KubevirtClient) *k8sv1.NodeList
- func GetArch() string
- func GetControlPlaneNodes(virtCli kubecli.KubevirtClient) *k8sv1.NodeList
- func GetHighestCPUNumberAmongNodes(virtClient kubecli.KubevirtClient) int
- func GetNodeDrainKey() string
- func GetNodeHostModel(node *k8sv1.Node) (hostModel string)
- func GetNodeWithHugepages(virtClient kubecli.KubevirtClient, hugepages k8sv1.ResourceName) *k8sv1.Node
- func GetNodesWithKVM() []*k8sv1.Node
- func GetSupportedCPUFeatures(nodesList k8sv1.NodeList) []string
- func GetSupportedCPUModels(nodeList k8sv1.NodeList) []string
- func GetVirtHandlerPod(virtCli kubecli.KubevirtClient, nodeName string) (*k8sv1.Pod, error)
- func GetWorkerNodesWithCPUManagerEnabled(virtClient kubecli.KubevirtClient) []k8sv1.Node
- func RemoveAnnotationFromNode(nodeName, key string) *k8sv1.Node
- func RemoveLabelFromNode(nodeName, key string) *k8sv1.Node
- func SetNodeSchedulable(nodeName string, virtCli kubecli.KubevirtClient)
- func SetNodeUnschedulable(nodeName string, virtCli kubecli.KubevirtClient)
- func Taint(nodeName, key string, effect k8sv1.TaintEffect)
- func TemporaryNodeDrain(nodeName string)
Constants ¶
This section is empty.
Variables ¶
View Source
var SchedulableNode = ""
Functions ¶
func AddAnnotationToNode ¶ added in v0.54.0
func AddLabelToNode ¶
func CleanNodes ¶
func CleanNodes()
func ExecuteCommandOnNodeThroughVirtHandler ¶ added in v1.3.0
func GetAllSchedulableNodes ¶
func GetAllSchedulableNodes(virtClient kubecli.KubevirtClient) *k8sv1.NodeList
GetAllSchedulableNodes returns list of Nodes which are "KubeVirt" schedulable.
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 GetNodeWithHugepages ¶
func GetNodeWithHugepages(virtClient kubecli.KubevirtClient, hugepages k8sv1.ResourceName) *k8sv1.Node
func GetNodesWithKVM ¶
func GetSupportedCPUFeatures ¶ added in v1.3.0
func GetSupportedCPUModels ¶ added in v1.3.0
func GetVirtHandlerPod ¶ added in v0.58.1
func GetWorkerNodesWithCPUManagerEnabled ¶ added in v1.2.0
func GetWorkerNodesWithCPUManagerEnabled(virtClient kubecli.KubevirtClient) []k8sv1.Node
func RemoveAnnotationFromNode ¶ added in v0.55.0
func RemoveLabelFromNode ¶
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.
Click to show internal directories.
Click to hide internal directories.