operator

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(ctx context.Context, result *ctrl.Result, err error) (ctrl.Result, error)

func RequeueAfter

func RequeueAfter(d time.Duration) error

func RequeueAfterWithError

func RequeueAfterWithError(d time.Duration, err error) error

func ResultFromError

func ResultFromError(err error) (*ctrl.Result, error)

Types

type ReconcileHandler

type ReconcileHandler[T runtime.Object] func(ctx context.Context, ns string, name string, m T) error

type RequeueError

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

func (*RequeueError) Error

func (r *RequeueError) Error() string

func (*RequeueError) Result

func (r *RequeueError) Result() reconcile.Result

type SubReconciler

type SubReconciler[T runtime.Object] struct {
	// contains filtered or unexported fields
}

func NewDeploymentReconciler

func NewDeploymentReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T]

func NewPVCReconciler

func NewPVCReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T]

func NewServiceReconciler

func NewServiceReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T]

func NewStatefulSetReconciler

func NewStatefulSetReconciler[T runtime.Object](fn ReconcileHandler[T]) SubReconciler[T]

type SubReconcilers

type SubReconcilers[T runtime.Object] []SubReconciler[T]

func NewSubReconcilers

func NewSubReconcilers[T runtime.Object](reconcilers ...SubReconciler[T]) SubReconcilers[T]

func (SubReconcilers[T]) Reconcile

func (s SubReconcilers[T]) Reconcile(ctx context.Context, req ctrl.Request, m T) error

Jump to

Keyboard shortcuts

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