nodes

package
v0.4.13-0rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LabelRole   = "node-role.kubernetes.io"
	RoleWorker  = "worker"
	RoleMCPTest = "mcp-test"

	// LabelMasterRole contains the key for the role label
	LabelMasterRole = "node-role.kubernetes.io/master"

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

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