Documentation ¶
Overview ¶
Package target provides a reconciler that propagates a Kubernetes cluster managed resource's connection secret to a Kubernetes target.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerName ¶
ControllerName returns the recommended name for controllers that use this package to reconcile a particular kind of target.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
A Reconciler reconciles targets by propagating the secret of the referenced managed resource.
func NewReconciler ¶
func NewReconciler(m manager.Manager, of resource.TargetKind, with resource.ManagedKind, o ...ReconcilerOption) *Reconciler
NewReconciler returns a Reconciler that reconciles KubernetesTargets by propagating the referenced Kubernetes cluster's connection Secret to the namespace of the KubernetesTarget.
type ReconcilerOption ¶
type ReconcilerOption func(*Reconciler)
A ReconcilerOption configures a Reconciler.
func WithLogger ¶
func WithLogger(l logging.Logger) ReconcilerOption
WithLogger specifies how the Reconciler should log messages.
func WithManagedConnectionPropagator ¶
func WithManagedConnectionPropagator(p resource.ManagedConnectionPropagator) ReconcilerOption
WithManagedConnectionPropagator specifies which ManagedConnectionPropagator should be used to propagate resource connection details to their target.
func WithRecorder ¶
func WithRecorder(er event.Recorder) ReconcilerOption
WithRecorder specifies how the Reconciler should record events.