node

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeAndWaitTillCapacityPresent

func GetNodeAndWaitTillCapacityPresent(manager Manager, os string, expectedResource string) *v1.NodeList

func VerifyCNINodeCount added in v1.5.0

func VerifyCNINodeCount(manager Manager) error

VerifyCNINodeCount checks if the number of CNINodes is equal to number of nodes in the cluster, and verifies 1:1 mapping between CNINode and Node objects Returns nil if count and 1:1 mapping exists, else returns error

Types

type Manager

type Manager interface {
	GetNodesWithOS(os string) (*v1.NodeList, error)
	AddLabels(nodeList []v1.Node, label map[string]string) error
	RemoveLabels(nodeList []v1.Node, label map[string]string) error
	GetNode(node *v1.Node) (*v1.Node, error)
	GetNodeList() (*v1.NodeList, error)
	GetCNINode(node *v1.Node) (*cninode.CNINode, error)
	GetCNINodeList() (*cninode.CNINodeList, error)
	GetInstanceID(node *v1.Node) string
	DeleteCNINode(cniNode *cninode.CNINode) error
	UpdateCNINode(oldCNINode, newCNINode *cninode.CNINode) error
}

func NewManager

func NewManager(k8sClient client.Client) Manager

Jump to

Keyboard shortcuts

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