nodes_fake

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildNode

func BuildNode(node string, capacity *v1.ResourceList, allocatable *v1.ResourceList) *v1.Node

func BuildNodesInfoMap

func BuildNodesInfoMap(
	Nodes map[string]TestNodeBasic, tasksToNodeMap map[string]pod_info.PodsMap,
	clusterPodAffinityInfo *cache.K8sClusterPodAffinityInfo, draClusterObjects ...runtime.Object) map[string]*node_info.NodeInfo

Types

type TestClusterTopology

type TestClusterTopology struct {
	Name  string
	Jobs  []*jobs_fake.TestJobBasic
	Nodes map[string]TestNodeBasic
}

type TestNodeBasic

type TestNodeBasic struct {
	GPUs            int
	GPUName         string
	MigStrategy     node_info.MigStrategy
	MigInstances    map[v1.ResourceName]int
	CPUMemory       float64
	GPUMemory       int
	CPUMillis       float64
	GpuMemorySynced *bool
	MaxTaskNum      *int
	Labels          map[string]string
}

Jump to

Keyboard shortcuts

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