nodes

package
v0.4.14-0.2023082101 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelRole = "node-role.kubernetes.io"

	RoleControlPlane = "control-plane"
	RoleWorker       = "worker"
	RoleMCPTest      = "mcp-test"

	// LabelControlPlaneRole contains the key for the control-plane role label
	LabelControlPlaneRole = "node-role.kubernetes.io/control-plane"

	// LabelWorker contains the key for the worker role label
	LabelWorkerRole = "node-role.kubernetes.io/worker"
)

Variables

This section is empty.

Functions

func GetControlPlane

func GetControlPlane(cli client.Client, ctx context.Context, plat platform.Platform) ([]corev1.Node, error)

func GetLabelRoleMCPTest

func GetLabelRoleMCPTest() string

func GetLabelRoleWorker

func GetLabelRoleWorker() string

func GetLoad

func GetLoad(k8sCli *kubernetes.Clientset, ctx context.Context, nodeName string) (baseload.Load, error)

func GetNames

func GetNames(nodes []corev1.Node) []string

func GetWorkerNodes

func GetWorkerNodes(cli client.Client, ctx context.Context) ([]corev1.Node, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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