controllers

package
v2.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 49 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 *