node_manager

package
v0.7.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeManager

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

func NewNodeManager

func NewNodeManager(nodepools []*pb.NodePool) (*NodeManager, error)

NewNodeManager returns a NodeManager pointer with initialised caches about nodes.

func (*NodeManager) Arch added in v0.4.2

func (nm *NodeManager) Arch(np *pb.NodePool) (nodes.Arch, error)

Arch returns the architecture for the dynamic nodepool.

func (*NodeManager) GetCapacity

func (nm *NodeManager) GetCapacity(np *pb.NodePool) k8sV1.ResourceList

GetCapacity returns a theoretical capacity for a new node from specified nodepool.

func (*NodeManager) Refresh

func (nm *NodeManager) Refresh(nodepools []*pb.NodePool) error

Refresh checks if the information about specified nodepools needs refreshing, and if so, refreshes it.

Jump to

Keyboard shortcuts

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