nodes

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleControlPlane = "control-plane"
	RoleWorker       = "worker"
)
View Source
const (
	// LabelRole contains the key for the role label
	LabelRole = "node-role.kubernetes.io"
)

Variables

This section is empty.

Functions

func GetByRole

func GetByRole(env *deployer.Environment, role string) ([]corev1.Node, error)

GetByRole returns all nodes with the specified role

func GetBySelector

func GetBySelector(env *deployer.Environment, selector labels.Selector) ([]corev1.Node, error)

GetBySelector returns all nodes with the specified selector

func GetControlPlane added in v0.20.1

func GetControlPlane(env *deployer.Environment) ([]corev1.Node, error)

func GetWorkers

func GetWorkers(env *deployer.Environment) ([]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