controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 15 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
}

Reconciler reconciles addon CRs.

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 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