Documentation ¶
Index ¶
- Constants
- func FilterNodesWithEnoughCores(nodes []v1.Node, cpuAmount string) ([]v1.Node, error)
- func GetNodesByRole(f *framework.Framework, role string) ([]v1.Node, error)
- func GetNodesBySelector(f *framework.Framework, selector labels.Selector) ([]v1.Node, error)
- func GetWorkerNodes(f *framework.Framework) ([]v1.Node, error)
- func LabelNode(f *framework.Framework, node *v1.Node, newLabels map[string]string) error
Constants ¶
View Source
const ( // RoleWorker contains the worker role RoleWorker = "worker" // DefaultNodeName we rely on kind for our CI DefaultNodeName = "kind-worker" )
View Source
const ( // LabelRole contains the key for the role label LabelRole = "node-role.kubernetes.io" // LabelHostname contains the key for the hostname label LabelHostname = "kubernetes.io/hostname" )
Variables ¶
This section is empty.
Functions ¶
func FilterNodesWithEnoughCores ¶
FilterNodesWithEnoughCores returns all nodes with at least the amount of given CPU allocatable
func GetNodesByRole ¶
GetByRole returns all nodes with the specified role
func GetNodesBySelector ¶
GetBySelector returns all nodes with the specified selector
func GetWorkerNodes ¶
GetWorkerNodes returns all nodes labeled as worker
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.