coscheduling

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "CoScheduling"

Variables

View Source
var (
	ErrorCanNotSetupTrainingRuntimeRuntimeClassIndexer        = errors.New("setting index on runtimeClass for TrainingRuntime")
	ErrorCanNotSetupClusterTrainingRuntimeRuntimeClassIndexer = errors.New("setting index on runtimeClass for ClusterTrainingRuntime")
)
View Source
var (
	TrainingRuntimeContainerRuntimeClassKey        = ".trainingRuntimeSpec.jobSetTemplateSpec.replicatedJobs.podTemplateSpec.runtimeClassName"
	ClusterTrainingRuntimeContainerRuntimeClassKey = ".clusterTrainingRuntimeSpec.jobSetTemplateSpec.replicatedJobs.podTemplateSpec.runtimeClassName"
)

Functions

func IndexClusterTrainingRuntimeContainerRuntimeClass

func IndexClusterTrainingRuntimeContainerRuntimeClass(obj client.Object) []string

func IndexTrainingRuntimeContainerRuntimeClass

func IndexTrainingRuntimeContainerRuntimeClass(obj client.Object) []string

func New

func New(ctx context.Context, client client.Client, indexer client.FieldIndexer) (framework.Plugin, error)

Types

type CoScheduling

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

func (*CoScheduling) Build

func (c *CoScheduling) Build(ctx context.Context, info *runtime.Info, trainJob *trainer.TrainJob) ([]any, error)

func (*CoScheduling) EnforcePodGroupPolicy

func (c *CoScheduling) EnforcePodGroupPolicy(info *runtime.Info, trainJob *trainer.TrainJob) error

func (*CoScheduling) Name

func (c *CoScheduling) Name() string

func (*CoScheduling) ReconcilerBuilders

func (c *CoScheduling) ReconcilerBuilders() []runtime.ReconcilerBuilder

type PodGroupLimitRangeHandler

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

type PodGroupRuntimeClassHandler

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

Jump to

Keyboard shortcuts

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