Documentation ¶
Index ¶
- Variables
- func AddAnnotationToNode(nodeName, key, value string) *k8sv1.Node
- func AddLabelToNode(nodeName, key, value string) *k8sv1.Node
- func CleanNodes()
- func GetAllSchedulableNodes(virtClient kubecli.KubevirtClient) *k8sv1.NodeList
- func GetArch() string
- func GetHighestCPUNumberAmongNodes(virtClient kubecli.KubevirtClient) int
- func GetNodeDrainKey() string
- func GetNodeWithHugepages(virtClient kubecli.KubevirtClient, hugepages k8sv1.ResourceName) *k8sv1.Node
- func GetNodesWithKVM() []*k8sv1.Node
- func GetVirtHandlerPod(virtCli kubecli.KubevirtClient, nodeName string) (*k8sv1.Pod, error)
- func RemoveAnnotationFromNode(nodeName string, key string) *k8sv1.Node
- func RemoveLabelFromNode(nodeName string, key string) *k8sv1.Node
- func SetNodeSchedulable(nodeName string, virtCli kubecli.KubevirtClient)
- func SetNodeUnschedulable(nodeName string, virtCli kubecli.KubevirtClient)
- func Taint(nodeName string, key string, effect k8sv1.TaintEffect)
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 GetAllSchedulableNodes ¶
func GetAllSchedulableNodes(virtClient kubecli.KubevirtClient) *k8sv1.NodeList
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 GetVirtHandlerPod ¶ added in v0.58.1
func RemoveAnnotationFromNode ¶ added in v0.55.0
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.