experiment

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ControllerName is the controller name.
	ControllerName = "experiment-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Experiment Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileExperiment

type ReconcileExperiment struct {
	client.Client

	suggestion.Suggestion
	manifest.Generator
	// contains filtered or unexported fields
}

ReconcileExperiment reconciles a Experiment object

func (*ReconcileExperiment) Reconcile

func (r *ReconcileExperiment) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Experiment object and makes changes based on the state read and what is in the Experiment.Spec +kubebuilder:rbac:groups=experiments.kubeflow.org,resources=experiments,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=experiments.kubeflow.org,resources=experiments/status,verbs=get;update;patch

func (*ReconcileExperiment) ReconcileExperiment

func (r *ReconcileExperiment) ReconcileExperiment(instance *experimentsv1beta1.Experiment) error

ReconcileExperiment is the main reconcile loop.

func (*ReconcileExperiment) ReconcileSuggestions

func (r *ReconcileExperiment) ReconcileSuggestions(instance *experimentsv1beta1.Experiment, trialList []trialsv1beta1.Trial, addCount int32) ([]suggestionsv1beta1.TrialAssignment, error)

ReconcileSuggestions gets or creates the suggestion if needed.

func (*ReconcileExperiment) ReconcileTrials

func (r *ReconcileExperiment) ReconcileTrials(instance *experimentsv1beta1.Experiment, trials []trialsv1beta1.Trial) error

ReconcileTrials syncs trials.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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