publication

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Published

Published GroupVersionKind that corresponds to the supplied defined GroupVersionKind.

func Setup

func Setup(mgr ctrl.Manager, log logging.Logger) error

Setup adds a controller that reconciles InfrastructurePublications.

Types

type CRDRenderFn

A CRDRenderFn renders an InfrastructurePublication's corresponding CustomResourceDefinition.

func (CRDRenderFn) Render

Render the supplied InfrastructurePublication's corresponding CustomResourceDefinition.

type CRDRenderer

A CRDRenderer renders an InfrastructurePublication's corresponding CustomResourceDefinition.

type ControllerEngine

type ControllerEngine interface {
	IsRunning(name string) bool
	Start(name string, o kcontroller.Options, w ...controller.Watch) error
	Stop(name string)
}

A ControllerEngine can start and stop Kubernetes controllers on demand.

type EnqueueRequestForRequirement

type EnqueueRequestForRequirement struct{}

EnqueueRequestForRequirement enqueues a reconcile.Request for the NamespacedName of a RequirementReferencer's RequirementReference.

func (*EnqueueRequestForRequirement) Create

Create adds a NamespacedName for the supplied CreateEvent if its Object is a RequirementReferencer.

func (*EnqueueRequestForRequirement) Delete

Delete adds a NamespacedName for the supplied DeleteEvent if its Object is a RequirementReferencer.

func (*EnqueueRequestForRequirement) Generic

Generic adds a NamespacedName for the supplied GenericEvent if its Object is a RequirementReferencer.

func (*EnqueueRequestForRequirement) Update

Update adds a NamespacedName for the supplied UpdateEvent if its Objects are RequirementReferencers.

type Finalizer

type Finalizer interface {
	AddFinalizer(ctx context.Context, o ...resource.Object) error
	RemoveFinalizer(ctx context.Context, o ...resource.Object) error
}

A Finalizer adds and removes finalizers to and from object metadata.

type MultiFinalizer

type MultiFinalizer struct {
	// contains filtered or unexported fields
}

An MultiFinalizer manages a finalizer for multiple objects.

func NewMultiFinalizer

func NewMultiFinalizer(f resource.Finalizer) *MultiFinalizer

NewMultiFinalizer returns a resource.Finalizer that manages a finalizer for multiple objects.

func (*MultiFinalizer) AddFinalizer

func (a *MultiFinalizer) AddFinalizer(ctx context.Context, o ...resource.Object) error

AddFinalizer to the supplied objects.

func (*MultiFinalizer) RemoveFinalizer

func (a *MultiFinalizer) RemoveFinalizer(ctx context.Context, o ...resource.Object) error

RemoveFinalizer from the supplies objects.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

A Reconciler reconciles InfrastructurePublications.

func NewReconciler

func NewReconciler(mgr manager.Manager, opts ...ReconcilerOption) *Reconciler

NewReconciler returns a Reconciler of InfrastructurePublications.

func (*Reconciler) Reconcile

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

Reconcile an InfrastructurePublication.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

ReconcilerOption is used to configure the Reconciler.

func WithCRDRenderer

func WithCRDRenderer(c CRDRenderer) ReconcilerOption

WithCRDRenderer specifies how the Reconciler should render an InfrastructurePublication's corresponding CustomResourceDefinition.

func WithClientApplicator added in v0.12.0

func WithClientApplicator(ca resource.ClientApplicator) ReconcilerOption

WithClientApplicator specifies how the Reconciler should interact with the Kubernetes API.

func WithControllerEngine

func WithControllerEngine(c ControllerEngine) ReconcilerOption

WithControllerEngine specifies how the Reconciler should manage the lifecycles of requirement controllers.

func WithFinalizer

func WithFinalizer(f Finalizer) ReconcilerOption

WithFinalizer specifies how the Reconciler should finalize InfrastructurePublications and InfrastructureDefinitions.

func WithLogger

func WithLogger(log logging.Logger) ReconcilerOption

WithLogger specifies how the Reconciler should log messages.

func WithRecorder

func WithRecorder(er event.Recorder) ReconcilerOption

WithRecorder specifies how the Reconciler should record Kubernetes events.

Jump to

Keyboard shortcuts

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