resourcereservation

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGPUReservationPod added in v0.9.7

func IsGPUReservationPod(pod *v1.Pod) bool

func NewService

func NewService(
	fakeGPuNodes bool,
	kubeClient client.WithWatch,
	reservationPodImage string,
	allocationTimeout time.Duration,
	namespace string,
	serviceAccountName string,
	appLabelValue string,
	scalingPodNamespace string,
	runtimeClassName string,
	podResources *v1.ResourceRequirements,
) *service

Types

type Interface

type Interface interface {
	Sync(ctx context.Context) error
	SyncForNode(ctx context.Context, nodeName string) error
	SyncForGpuGroup(ctx context.Context, gpuGroup string) error
	ReserveGpuDevice(ctx context.Context, pod *v1.Pod, nodeName string, gpuGroup string) (string, error)
	RemovePodGpuGroupConnection(ctx context.Context, pod *v1.Pod, gpuGroup string) error
}

Directories

Path Synopsis
Package mock_resourcereservation is a generated GoMock package.
Package mock_resourcereservation is a generated GoMock package.

Jump to

Keyboard shortcuts

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