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 *PatchReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers a new patch reconciler with the supplied manager

type Poller

type Poller struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

Poller handles checking with the Application Services to trigger an in cluster activity such as scanning resources or running an experiment.

func (*Poller) SetupWithManager

func (p *Poller) SetupWithManager(mgr ctrl.Manager) error

func (*Poller) Start

func (p *Poller) Start(ch <-chan struct{}) error

Start is used to initiate the polling loop for new tasks. Start satisfies the controller-runtime/manager.Runnable interface so we can plug into the underlying controller runtime manager that the rest of the controllers use. If there was an issue connecting to the application services, this will immediately return.

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  experiments.API
	ApplicationsAPI applications.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