node

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesNodeInfoService

type KubernetesNodeInfoService struct {
	// contains filtered or unexported fields
}

func NewKubernetesNodeInfoService

func NewKubernetesNodeInfoService(
	clusterContext context.ClusterContext,
	nodeTypeLabel string,
	nodePoolLabel string,
	toleratedTaints []string,
) *KubernetesNodeInfoService

func (*KubernetesNodeInfoService) GetAllAvailableProcessingNodes

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetAllAvailableProcessingNodes() ([]*v1.Node, error)

func (*KubernetesNodeInfoService) GetAllNodes

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetAllNodes() ([]*v1.Node, error)

func (*KubernetesNodeInfoService) GetPool added in v0.9.0

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetPool(node *v1.Node) string

func (*KubernetesNodeInfoService) GetType

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetType(node *v1.Node) string

func (*KubernetesNodeInfoService) GroupNodesByType

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GroupNodesByType(nodes []*v1.Node) []*NodeGroup

func (*KubernetesNodeInfoService) IsAvailableProcessingNode added in v0.3.65

func (kubernetesNodeInfoService *KubernetesNodeInfoService) IsAvailableProcessingNode(node *v1.Node) bool

type NodeGroup

type NodeGroup struct {
	NodeType string
	Nodes    []*v1.Node
}

type NodeInfoService

type NodeInfoService interface {
	IsAvailableProcessingNode(*v1.Node) bool
	GetAllAvailableProcessingNodes() ([]*v1.Node, error)
	GetAllNodes() ([]*v1.Node, error)
	GroupNodesByType(nodes []*v1.Node) []*NodeGroup
	GetType(node *v1.Node) string
	GetPool(node *v1.Node) string
}

Jump to

Keyboard shortcuts

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