controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 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
	AdminChanged chan int
	Log          *logging.Logger
}

Reconciler reconciles addon CRs.

func (Reconciler) Reconcile

func (r Reconciler) Reconcile(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