controller

package
v0.0.0-...-255ad0c Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FinalizerChanged

func FinalizerChanged() predicate.Funcs

func MustAddToScheme

func MustAddToScheme(scheme *runtime.Scheme)

func RetryStatusUpdate

func RetryStatusUpdate[T client.Object](ctx context.Context, cli client.Client, original T, mutate MutateFn[T], opts ...client.SubResourceUpdateOption) (T, error)

RetryStatusUpdate attempts to update status subresource of a specified Kubernetes resource and retries on conflict.

func RetryUpdate

func RetryUpdate[T client.Object](ctx context.Context, cli client.Client, original T, mutate MutateFn[T], opts ...client.UpdateOption) (T, error)

RetryUpdate attempts to update a specified Kubernetes resource and retries on conflict.

Types

type ClientCallFn

type ClientCallFn[T client.Object] func(ctx context.Context, cli client.Client, obj T) error

ClientCallFn defines what client.Client operation on a given object should be performed.

type MutateFn

type MutateFn[T client.Object] func(saved T)

MutateFn is a function that allows defining custom logic for updating resource object.

type Reconciler

type Reconciler interface {
	Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
	SetupWithManager(mgr ctrl.Manager) error
}

Reconciler defines required functions for each

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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