target

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package target provides a reconciler that propagates a Kubernetes cluster managed resource's connection secret to a Kubernetes target. Deprecated: See https://github.com/crossplane/crossplane/issues/1595

Index

Constants

View Source
const ReasonSecretPropagationError v1alpha1.ConditionReason = "PropagationError"

ReasonSecretPropagationError indicates that secret propagation failed.

View Source
const TypeSecretPropagated v1alpha1.ConditionType = "ConnectionSecretPropagated"

TypeSecretPropagated resources have had connection information propagated to their secret reference.

Variables

This section is empty.

Functions

func ControllerName

func ControllerName(kind string) string

ControllerName returns the recommended name for controllers that use this package to reconcile a particular kind of target.

func SecretPropagationError added in v0.10.0

func SecretPropagationError(err error) v1alpha1.Condition

SecretPropagationError returns a condition indicating that Crossplane was unable to propagate connection data to the referenced secret. This could be because it was unable to find the managed resource that owns the secret to be propagated.

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

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.

Jump to

Keyboard shortcuts

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