node

package
v0.4.52 Latest Latest
Warning

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

Go to latest
Published: May 19, 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, 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) GetType

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

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 *NodeTypeIdentifier
	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) *NodeTypeIdentifier
}

type NodeTypeIdentifier added in v0.4.20

type NodeTypeIdentifier struct {
	Id     string
	Taints []v1.Taint
}

Jump to

Keyboard shortcuts

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