OnCallReadyStart learning

crossplane: The Crossplane command-line tool (crossplane/cli v2.5.0): trace, render, packages, XRDs

crossplane <command> [flags]

What it does

A client-side tool: it reads your kubeconfig like kubectl and never runs inside the cluster. On call two commands matter: crossplane resource trace (an XR or claim and everything under it as a tree, with SYNCED, READY and the status message of each object) and crossplane composition render (run a Composition locally, the functions and the Crossplane render engine in Docker, and print what it would create). Since the CLI moved to its own repository (v2.3), crossplane beta trace is crossplane resource trace and crossplane render is crossplane composition render (the old top-level render is kept hidden).

Options you will use

--verbose
Print verbose logging statements.
-h, --help
Show context-sensitive help.

Examples

$ crossplane resource trace database orders -n team-a -o wide

the XR, what it composed, full messages

$ crossplane composition render xr.yaml composition.yaml functions.yaml

what this Composition would create

$ crossplane composition render xr.yaml comp.yaml fns.yaml -o observed/ -r

with existing resources, and the functions' warnings

$ crossplane version

client and server versions

Gotchas

Taught in

On the blog

Try crossplane in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.