libnode

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 22 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 GetAllSchedulableNodes

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

func GetArch

func GetArch() string

func GetHighestCPUNumberAmongNodes

func GetHighestCPUNumberAmongNodes(virtClient kubecli.KubevirtClient) int

func GetNodeDrainKey

func GetNodeDrainKey() string

func GetNodeWithHugepages

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

func GetNodesWithKVM

func GetNodesWithKVM() []*k8sv1.Node

func GetVirtHandlerPod added in v0.58.1

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

func RemoveAnnotationFromNode added in v0.55.0

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

func RemoveLabelFromNode

func RemoveLabelFromNode(nodeName string, 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 string, key string, effect k8sv1.TaintEffect)

Types

This section is empty.

Jump to

Keyboard shortcuts

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