core

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 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 Component

type Component interface {
	Reconcile(*Context) (ctrl.Result, error)
}

type Context

type Context struct {
	context.Context

	Log      logr.Logger
	Object   client.Object
	Client   client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	Patch    *Patch
}

type FinalizerComponent

type FinalizerComponent interface {
	Finalize(*Context) (ctrl.Result, bool, error)
}

type OwnedComponent

type OwnedComponent interface {
	Component
	Kind() client.Object
}

type Patch

type Patch struct {
	Annotator     *patch.Annotator
	Maker         patch.Maker
	CalculateOpts []patch.CalculateOption
}

func NewPatch

func NewPatch(gvk schema.GroupVersionKind) *Patch

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(mgr ctrl.Manager) *Reconciler

func (*Reconciler) Build

func (r *Reconciler) Build() (controller.Controller, error)

func (*Reconciler) Complete

func (r *Reconciler) Complete() error

func (*Reconciler) Component

func (r *Reconciler) Component(name string, comp Component, opts ...builder.OwnsOption) *Reconciler

func (*Reconciler) For

func (r *Reconciler) For(apiType client.Object, opts ...builder.ForOption) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(rootCtx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*Reconciler) WithWebhooks

func (r *Reconciler) WithWebhooks() *Reconciler

Jump to

Keyboard shortcuts

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