controller

package
v0.5.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Name = "addon"
)

Variables

View Source
var Settings = &settings.Settings

Settings defines applcation settings.

Functions

func Add

func Add(mgr manager.Manager, db *gorm.DB) error

Add the controller.

Types

type Reconciler

type Reconciler struct {
	record.EventRecorder
	k8s.Client
	DB  *gorm.DB
	Log logr.Logger
	// contains filtered or unexported fields
}

Reconciler reconciles addon CRs. The history is used to ensure resources are reconciled at least once at startup.

func (Reconciler) Reconcile

func (r Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (result reconcile.Result, err error)

Reconcile a Addon CR. Note: Must not be a pointer receiver to ensure that the logger and other state is not shared.

Jump to

Keyboard shortcuts

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