Use a Crossplane function pipeline with function-patch-and-transform

domain: docs.crossplane.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the function-patch-and-transform Function into your cluster by creating a Function resource pointing to the crossplane-contrib/function-patch-and-transform image.
  2. In your Composition, set spec.mode: Pipeline and define spec.pipeline as an ordered list of steps; place the function-patch-and-transform step with step.functionRef.name pointing to the installed Function.
  3. Pass an input to the step under step.input with apiVersion: pt.fn.crossplane.io/v1beta1, kind: Resources, and a resources list that defines the desired managed resources with patch rules.
  4. Define patches within each resource entry to copy fields from the composite resource (fromFieldPath) to the managed resource (toFieldPath) using the FromCompositeFieldPath patch type.
  5. Chain multiple functions in the pipeline by adding additional steps; each step receives the entire desired state from the previous step and can modify or add resources before passing it to the next function.
  6. Use the readiness.policy field in the resource definition within the input to specify when a composed resource is considered ready, propagating readiness status back to the composite resource.

Known gotchas

Related routes

Create a Crossplane function pipeline Composition using function-patch-and-transform
docs.crossplane.io · 6 steps · unrated
Define a Crossplane XRD and Composition using the function-patch-and-transform pipeline mode
docs.crossplane.io · 6 steps · unrated
Write a Crossplane Composition using pipeline mode with function-go-templating to generate conditional managed resources based on composite resource spec fields
crossplane.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans