controllers

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSourceReconciler

type DataSourceReconciler struct {
	client.Reader
	Scheme        *runtime.Scheme
	EngineManager api.DataSourceManager
}

DataSourceReconciler reconciles a DataSource object This reconciler is used in every instance of the app, and not only the leader. It is used to ensure the EngineManager's state is synchronized with the CustomResources.

For the creation and modification external resources, the operator's controller is used. For the operator's controller see the `internal/operator/datasource_controller.go` file

func (*DataSourceReconciler) Reconcile

func (r *DataSourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is the main function of the reconciler.

func (*DataSourceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Controller Manager.

type FeatureReconciler

type FeatureReconciler struct {
	client.Reader
	Scheme         *runtime.Scheme
	UpdatesAllowed bool
	EngineManager  api.FeatureManager
}

FeatureReconciler reconciles a Feature object This reconciler is used in every instance of the app, and not only the leader. It is used to ensure the EngineManager's state is synchronized with the CustomResources.

For the creation and modification external resources, the operator's controller is used. For the operator's controller see the `internal/operator/feature_controller.go` file

func (*FeatureReconciler) Reconcile

func (r *FeatureReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is the main function of the reconciler.

func (*FeatureReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Controller Manager.

type ModelReconciler

type ModelReconciler struct {
	client.Reader
	Scheme        *runtime.Scheme
	EngineManager api.FeatureManager
}

ModelReconciler reconciles a Feature object This reconciler is used in every instance of the app, and not only the leader. It is used to ensure the EngineManager's state is synchronized with the CustomResources.

func (*ModelReconciler) Reconcile

func (r *ModelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is the main function of the reconciler.

func (*ModelReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Controller Manager.

Jump to

Keyboard shortcuts

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