reconciler

package
v0.0.0-...-8a20bae Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileResource

func ReconcileResource(ctx context.Context, config *ResourceConfig) error

Types

type DecideFn

type DecideFn func() bool

type HookFn

type HookFn func() error

type ResourceConfig

type ResourceConfig struct {
	Client     client.Client
	Owner      metav1.Object
	Expected   runtime.Object
	Reconciled runtime.Object

	NeedUpdate   DecideFn
	NeedRecreate DecideFn

	PreCreateHook  HookFn
	PreUpdateHook  HookFn
	PostUpdateHook HookFn

	Logger logr.Logger
}

Jump to

Keyboard shortcuts

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