composite

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package composite renders a composite resource (XR) by running one real reconcile loop against a fake in-memory client. It is intended as an internal engine for tools like 'crossplane render' and 'up test run'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildOutput

BuildOutput assembles a CompositeOutput from the fake client's captured state and the event recorder. The isPrimary predicate identifies the primary resource (the XR) so it can be separated from composed resources.

func CompositionSelector

CompositionSelector returns a CompositionSelectorFn that sets the composition reference on the XR to point to the supplied Composition.

func InjectResourceRefs

func InjectResourceRefs(xr *ucomposite.Unstructured, observed []kunstructured.Unstructured)

InjectResourceRefs sets spec.resourceRefs on the XR for each observed resource. The real ExistingComposedResourceObserver reads these refs to discover existing composed resources. Any preexisting refs are replaced.

func Render

Render runs one real XR reconcile loop using the real reconciler engine backed by a fake in-memory client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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