composition

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package composition creates composition revisions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompositionRevision

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

NewCompositionRevision creates a new revision of the supplied Composition.

func NewCompositionRevisionSpec

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

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

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