controllers

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExperimentReconciler

type ExperimentReconciler struct {
	client.Client
	Log logr.Logger
}

ExperimentReconciler reconciles an Experiment object

func (*ExperimentReconciler) Reconcile

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

func (*ExperimentReconciler) SetupWithManager

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

type MetricReconciler

type MetricReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

MetricReconciler reconciles the metrics on a Trial object

func (*MetricReconciler) Reconcile

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

func (*MetricReconciler) SetupWithManager

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

type PatchReconciler

type PatchReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

PatchReconciler reconciles the patches on a Trial object

func (*PatchReconciler) Reconcile

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

Reconcile inspects a trial to see if patches need to be applied. The "trial patched" status condition is used to control what actions need to be taken. If the status is "unknown" then the experiment is fetched and the patch templates will be rendered into the list of patch operations on the trial; once the patches are evaluated the status will be "false". If the status is "false" then patch operations will be applied to the cluster; once all the patches are applied the status will be "true".

func (*PatchReconciler) SetupWithManager

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

SetupWithManager registers a new patch reconciler with the supplied manager

type ReadyReconciler

type ReadyReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

ReadyReconciler checks for readiness of the patched objects

func (*ReadyReconciler) Reconcile

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

Reconcile inspects a trial to see if the patched objects are ready for the trial job to start

func (*ReadyReconciler) SetupWithManager

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

SetupWithManager registers a new ready reconciler with the supplied manager

type ServerReconciler

type ServerReconciler struct {
	client.Client
	Log            logr.Logger
	Scheme         *runtime.Scheme
	ExperimentsAPI experimentsv1alpha1.API
	// contains filtered or unexported fields
}

ServerReconciler reconciles a experiment and trial objects with a remote server

func (*ServerReconciler) Reconcile

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

func (*ServerReconciler) SetupWithManager

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

type SetupReconciler

type SetupReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

SetupReconciler reconciles a Trial object for setup tasks

func (*SetupReconciler) Reconcile

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

func (*SetupReconciler) SetupWithManager

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

type TrialJobReconciler

type TrialJobReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

TrialJobReconciler reconciles a Trial's job

func (*TrialJobReconciler) Reconcile

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

func (*TrialJobReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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