composition

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompositionRevision

func NewCompositionRevision(c *v1.Composition, revision int64, compSpecHash string) *v1alpha1.CompositionRevision

NewCompositionRevision creates a new revision of the supplied Composition.

func NewCompositionRevisionComposedTemplate

func NewCompositionRevisionComposedTemplate(ct v1.ComposedTemplate) v1alpha1.ComposedTemplate

NewCompositionRevisionComposedTemplate translates a composition's composed (resource) template to a composition composed template.

func NewCompositionRevisionConnectionDetail

func NewCompositionRevisionConnectionDetail(cd v1.ConnectionDetail) v1alpha1.ConnectionDetail

NewCompositionRevisionConnectionDetail translates a composition's connection detail to a composition revision connection detail.

func NewCompositionRevisionPatch

func NewCompositionRevisionPatch(p v1.Patch) v1alpha1.Patch

NewCompositionRevisionPatch translates a composition's patch to a composition revision patch.

func NewCompositionRevisionPatchSet

func NewCompositionRevisionPatchSet(ps v1.PatchSet) v1alpha1.PatchSet

NewCompositionRevisionPatchSet translates a composition's patch set to a composition revision patch set.

func NewCompositionRevisionReadinessCheck

func NewCompositionRevisionReadinessCheck(rc v1.ReadinessCheck) v1alpha1.ReadinessCheck

NewCompositionRevisionReadinessCheck translates a composition's readiness check to a composition revision readiness check.

func NewCompositionRevisionSpec

func NewCompositionRevisionSpec(cs v1.CompositionSpec, revision int64) v1alpha1.CompositionRevisionSpec

NewCompositionRevisionSpec translates a composition's spec to a composition revision spec.

func NewCompositionRevisionTransform

func NewCompositionRevisionTransform(t v1.Transform) v1alpha1.Transform

NewCompositionRevisionTransform translates a compostion's transform to a composition revision transform.

func Setup

func Setup(mgr ctrl.Manager, o controller.Options) error

Setup adds a controller that reconciles Compositions by creating new CompositionRevisions for each revision of the Composition's spec.

Types

type Reconciler

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

A Reconciler reconciles Compositions by creating new CompositionRevisions for each revision of the Composition's spec.

func NewReconciler

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

NewReconciler returns a Reconciler of Compositions.

func (*Reconciler) Reconcile

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

Reconcile a Composition.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

ReconcilerOption is used to configure the Reconciler.

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