Documentation ¶
Index ¶
- Constants
- func GetControlPlane(cli client.Client, ctx context.Context, plat platform.Platform) ([]corev1.Node, error)
- func GetLabelRoleMCPTest() string
- func GetLabelRoleWorker() string
- func GetLoad(k8sCli *kubernetes.Clientset, ctx context.Context, nodeName string) (baseload.Load, error)
- func GetNames(nodes []corev1.Node) []string
- func GetWorkerNodes(cli client.Client, ctx context.Context) ([]corev1.Node, error)
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 GetLabelRoleMCPTest ¶
func GetLabelRoleMCPTest() string
func GetLabelRoleWorker ¶
func GetLabelRoleWorker() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.