Documentation

Index

Constants

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

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(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 *experimentsv1alpha3.Experiment) error

ReconcileExperiment is the main reconcile loop.

func (*ReconcileExperiment) ReconcileSuggestions

func (r *ReconcileExperiment) ReconcileSuggestions(instance *experimentsv1alpha3.Experiment, currentCount, addCount int32) ([]suggestionsv1alpha3.TrialAssignment, error)

ReconcileSuggestions gets or creates the suggestion if needed.

func (*ReconcileExperiment) ReconcileTrials

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

ReconcileTrials syncs trials.

Directories

Path Synopsis
manifest
suggestion
suggestion/fake
util