target

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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 added in v0.5.0

func ControllerName(kind string) string

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

NewReconciler returns a Reconciler that reconciles KubernetesTargets by propagating the referenced Kubernetes cluster's connection Secret to the namespace of the KubernetesTarget.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile a target with a concrete managed resource.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

A ReconcilerOption configures a Reconciler.

func WithLogger added in v0.5.0

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 added in v0.5.0

func WithRecorder(er event.Recorder) ReconcilerOption

WithRecorder specifies how the Reconciler should record events.

Jump to

Keyboard shortcuts

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