migstate

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMigNodeToNodePartitioning

func FromMigNodeToNodePartitioning(node mig.Node) state.NodePartitioning

Types

type MigClusterSnapshot

type MigClusterSnapshot struct {
	state.ClusterSnapshot
	// contains filtered or unexported fields
}

func NewClusterSnapshot

func NewClusterSnapshot(snapshot state.ClusterSnapshot) (MigClusterSnapshot, error)

func (*MigClusterSnapshot) AddPod

func (s *MigClusterSnapshot) AddPod(nodeName string, pod v1.Pod) error

func (*MigClusterSnapshot) Commit

func (s *MigClusterSnapshot) Commit()

func (*MigClusterSnapshot) Fork

func (s *MigClusterSnapshot) Fork() error

func (*MigClusterSnapshot) GetCandidateNodes

func (s *MigClusterSnapshot) GetCandidateNodes() []mig.Node

GetCandidateNodes returns the Nodes with free MIG devices or available MIG capacity

func (*MigClusterSnapshot) GetLackingMigProfiles

func (s *MigClusterSnapshot) GetLackingMigProfiles(pod v1.Pod) map[mig.ProfileName]int

GetLackingMigProfiles returns (if any) the name and the quantity of the MIG profiles requested by the Pod but currently not available in the ClusterSnapshot.

func (*MigClusterSnapshot) GetPartitioningState

func (s *MigClusterSnapshot) GetPartitioningState() state.PartitioningState

func (*MigClusterSnapshot) SetNode

func (s *MigClusterSnapshot) SetNode(node mig.Node) error

Jump to

Keyboard shortcuts

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