controller

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupControllers

func SetupControllers(mgr ctrl.Manager, runtimes map[string]runtime.Runtime, options controller.Options) (string, error)

Types

type ClusterTrainingRuntimeReconciler

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

func NewClusterTrainingRuntimeReconciler

func NewClusterTrainingRuntimeReconciler(cli client.Client, recorder record.EventRecorder) *ClusterTrainingRuntimeReconciler

func (*ClusterTrainingRuntimeReconciler) NotifyTrainJobUpdate

func (r *ClusterTrainingRuntimeReconciler) NotifyTrainJobUpdate(oldJob, newJob *trainer.TrainJob)

func (*ClusterTrainingRuntimeReconciler) Reconcile

func (*ClusterTrainingRuntimeReconciler) SetupWithManager

func (r *ClusterTrainingRuntimeReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

type TrainJobReconciler

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

func NewTrainJobReconciler

func NewTrainJobReconciler(client client.Client, recorder record.EventRecorder, runtimes map[string]jobruntimes.Runtime, opts ...TrainJobReconcilerOption) *TrainJobReconciler

func (*TrainJobReconciler) Create

func (*TrainJobReconciler) Delete

func (*TrainJobReconciler) Generic

func (*TrainJobReconciler) Reconcile

func (r *TrainJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TrainJobReconciler) SetupWithManager

func (r *TrainJobReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

func (*TrainJobReconciler) Update

type TrainJobReconcilerOption

type TrainJobReconcilerOption func(*TrainJobReconcilerOptions)

func WithWatchers

func WithWatchers(watchers ...TrainJobWatcher) TrainJobReconcilerOption

type TrainJobReconcilerOptions

type TrainJobReconcilerOptions struct {
	Watchers iter.Seq[TrainJobWatcher]
}

type TrainJobWatcher

type TrainJobWatcher interface {
	NotifyTrainJobUpdate(oldJob, newJob *trainer.TrainJob)
}

type TrainingRuntimeReconciler

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

func NewTrainingRuntimeReconciler

func NewTrainingRuntimeReconciler(cli client.Client, recorder record.EventRecorder) *TrainingRuntimeReconciler

func (*TrainingRuntimeReconciler) NotifyTrainJobUpdate

func (r *TrainingRuntimeReconciler) NotifyTrainJobUpdate(oldJob, newJob *trainer.TrainJob)

func (*TrainingRuntimeReconciler) Reconcile

func (*TrainingRuntimeReconciler) SetupWithManager

func (r *TrainingRuntimeReconciler) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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