test_utils

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SchedulerName            = "kai-scheduler"
	ScalingPodNamespace      = "kai-scale-adjust"
	ScalingPodAppLabel       = "scaling-pod"
	ScalingPodServiceAccount = "scaling-pod"
)

Variables

This section is empty.

Functions

func CreateScalingPod

func CreateScalingPod(unschedulablePodNamespace, unschedulablePodName string, numDevices int) *corev1.Pod

func CreateUnschedulableFractionPod

func CreateUnschedulableFractionPod(name, namespace string, fractionValue string, numDevices int) *corev1.Pod

func CreateUnschedulablePod

func CreateUnschedulablePod(name, namespace string, annotations map[string]string) *corev1.Pod

func CreateUnschedulablePodWithGpuMemory

func CreateUnschedulablePodWithGpuMemory(name, namespace string, gpuMemory string, numDevices int) *corev1.Pod

func NewFakeClient

func NewFakeClient(interceptorFuncs *interceptor.Funcs, objects ...client.Object) client.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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