Build an Internal Developer Platform — Backstage, Golden Paths & Crossplane›The golden path · Cheat sheet & self-check

The golden path · wrap-up

Cheat sheet & self-check

Every command from this section on one page.

04 · The software catalog

Catalog API (backend on :7007)

curl -s localhost:7007/api/catalog/entities/by-query?filter=kind=component | jq '.items[].metadata.name'List components
curl -s localhost:7007/api/catalog/entities/by-name/component/default/orders | jq .relationsRelations of one entity
curl -s -X POST localhost:7007/api/catalog/refresh -H 'content-type: application/json' -d '{"entityRef":"component:default/orders"}'Ask the catalog to refresh one entity

Annotations you will use

backstage.io/techdocs-ref: dir:.Docs live in this repo
backstage.io/kubernetes-id: ordersFind this component's workloads in clusters
argocd/app-name: ordersLink to the Argo CD application
backstage.io/source-location: url:https://git/…Where the code lives

05 · Software templates

Template development

http://localhost:3000/create/editTemplate editor: load a local template and dry-run it
http://localhost:3000/create/actionsEvery installed scaffolder action with its inputs
http://localhost:3000/create/tasksPast runs and their logs
${{ parameters.name }}A form value inside template.yaml
${{ values.name }}A value inside the skeleton files
${{ steps['publish'].output.remoteUrl }}Output of an earlier step

06 · From template to every cluster

Watch the fleet

kubectl -n argocd get applicationsetApplicationSets and their conditions
kubectl -n argocd get app -l fleet.example.io/service=tenant-apiOne service across all clusters
kubectl -n argocd logs deploy/argocd-applicationset-controller | tailWhy an ApplicationSet produced nothing
kubectl -n argocd get applicationset golden-fleet -o jsonpath='{range .status.applicationStatus[*]}{.application}:{.status} {end}'Progressive sync status per app (Waiting, Pending, Progressing, Healthy)
argocd app terminate-op <app>Stop a stuck sync after fixing Git