trainingjob

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

README

Package trainingjob

This package contains the training job controller, its tests, and helper types and functions.

Documentation

Index

Constants

View Source
const (
	MaxTrainingJobNameLength = 63
)

Defines the maximum number of characters in a SageMaker Training Job name

View Source
const (
	ReconcilingTrainingJobStatus = "ReconcilingTrainingJob"
)

All the status used by the controller during reconciliation.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Log          logr.Logger
	PollInterval time.Duration
	// contains filtered or unexported fields
}

Reconciler reconciles a TrainingJob object

func NewTrainingJobReconciler

func NewTrainingJobReconciler(client client.Client, log logr.Logger, pollInterval time.Duration) *Reconciler

NewTrainingJobReconciler creates a new reconciler with the default SageMaker client.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile attempts to reconcile the SageMaker resource state with the k8s desired state.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager configures the manager to recognise the controller.

Jump to

Keyboard shortcuts

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