internal

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletedStateFor

func DeletedStateFor[T any, Obj apitypes.FSMResource[T]](_ *fsmReconciler[T, Obj]) *types.State[Obj]

func NewFSMReconciler

func NewFSMReconciler[T any, Obj apitypes.FSMResource[T]](
	name string,
	log *zap.SugaredLogger,
	client *io.ClientApplicator,
	scheme *runtime.Scheme,
	initialState *types.State[Obj],
	finalizerState *types.State[Obj],
	managedTypes []schema.GroupVersionKind,
	metrics *metrics.Metrics,
	reconcilerOptions types.ReconcilerOptions[T, Obj],
) *fsmReconciler[T, Obj]

Types

type BeforeDelete

type BeforeDelete[
	T any, Claimed apitypes.ClaimedType[T], U any, Claim apitypes.ClaimType[U],
] func(Claim, Claimed) error

type ClaimReconciler

type ClaimReconciler[T any, Claimed apitypes.ClaimedType[T], U any, Claim apitypes.ClaimType[U]] struct {
	Client *io.ClientApplicator
	Scheme *runtime.Scheme
	Log    *zap.SugaredLogger

	Name string
	// contains filtered or unexported fields
}

func NewClaimReconciler

func NewClaimReconciler[T any, Claimed apitypes.ClaimedType[T], U any, Claim apitypes.ClaimType[U]](
	_ Claimed,
	claim Claim,
	client *io.ClientApplicator,
	scheme *runtime.Scheme,
	log *zap.SugaredLogger,
	beforeDelete BeforeDelete[T, Claimed, U, Claim],
) ClaimReconciler[T, Claimed, U, Claim]

func (*ClaimReconciler[T, Claimed, U, Claim]) Reconcile

func (r *ClaimReconciler[T, Claimed, U, Claim]) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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