controller

package
v0.0.0-...-5504f18 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicReconciler

type DynamicReconciler struct {
	client.Client
	Scheme           *runtime.Scheme
	Name             string
	GroupVersionKind schema.GroupVersionKind
	EventsSource     string
	EventsTarget     string
	EventsClient     cloudeventsclient.Client
}

DynamicReconciler reconciles any object with the given GroupVersionKind. When an instance of the object is created, updated, or deleted, the reconciler emits a CloudEvent to the configured target.

func (*DynamicReconciler) Reconcile

func (r *DynamicReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile receives events for the configured object, determines the object's state on the cluster, and emits an appropriate CloudEvent. If the event is not delivered, it is retried via a requeue.

func (*DynamicReconciler) SetupWithManager

func (r *DynamicReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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