Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileExperiment
- func (r *ReconcileExperiment) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileExperiment) ReconcileExperiment(instance *experimentsv1beta1.Experiment) error
- func (r *ReconcileExperiment) ReconcileSuggestions(instance *experimentsv1beta1.Experiment, currentCount, addCount int32) ([]suggestionsv1beta1.TrialAssignment, error)
- func (r *ReconcileExperiment) ReconcileTrials(instance *experimentsv1beta1.Experiment, trials []trialsv1beta1.Trial) error
Constants ¶
View Source
const (
// ControllerName is the controller name.
ControllerName = "experiment-controller"
)
View Source
const (
ReconcileFailedReason = "ReconcileFailed"
)
Variables ¶
This section is empty.
Functions ¶
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 ¶
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, currentCount, 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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.