reconcile

package
v0.0.0-...-bb7034b Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

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

Reconciler periodically checks the status of subresources and takes various self-healing and convergence actions. These include updating the top-level custom resource status, re-creating missing subresources, deleting orphaned subresources, et cetera.

See the docs/reconciliation.md file for a detailed description of the reconciliation policy.

func New

func New(namespace string, gvk schema.GroupVersionKind, crdHandle *crd.Handle, crdClient crd.Client, resourceClients []resource.Client) *Reconciler

New returns a new Reconciler.

func (*Reconciler) Run

func (r *Reconciler) Run(ctx context.Context, interval time.Duration) error

Run starts the reconciliation loop and blocks until the context is done, or there is an unrecoverable error. Reconciliation actions are done at the supplied interval.

Jump to

Keyboard shortcuts

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