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 ¶
const ReasonSecretPropagationError v1alpha1.ConditionReason = "PropagationError"
ReasonSecretPropagationError indicates that secret propagation failed.
const TypeSecretPropagated v1alpha1.ConditionType = "ConnectionSecretPropagated"
TypeSecretPropagated resources have had connection information propagated to their secret reference.
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.
func SecretPropagationError ¶ added in v0.10.0
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 ¶
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.