Skip to content

Build orchestration

The control plane authors builds and never runs one. It resolves which executor will do the work, what that executor must be capable of, and what it must report back, then issues an assignment a node acts on. This page is that authoring step and the executor catalog behind it.

The split

flowchart LR
  subgraph CP["CONTROL PLANE"]
    direction TB
    CAT[("Executor catalog<br/>kaniko, image reference")]
    CON[("Resolved contracts<br/>identity, pull, publish,<br/>handshake, profiles")]
    BA["Build assignment"]
    PIN[("Pinned reference")]
    CAT --> BA
    CON --> BA
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    N["xratud"]
    JOB["Build job<br/>Kubernetes-native"]
    REG[("Your registry")]
    N --> JOB
    JOB ==>|"push"| REG
  end
  BA -->|"pulled"| N
  N -->|"reported digest"| PIN

The builder image comes out of the catalog box, so the node runs the executor the control plane resolved. The build job and its push are both inside your infrastructure, and the control plane's two records sit either side of them.

Every byte the build touches stays on your side. The control plane's output is a declaration and its input is a report. See Byte-free recipes.

The executor catalog

An executor is resolved from a catalog rather than named freely in a request. One executor type is registered:

type              kaniko
execution class   image_builder
runtime mode      kubernetes_native
operational status operational

The catalog entry carries the executor's own image reference, so the builder a node runs is a value the control plane resolved rather than one the node chose.

Alongside each entry is a support descriptor under build.executor_support_descriptor.v1, declaring the features that executor requires. Resolving both together allows a build to be refused for an unsupported combination before a node is asked to attempt it.

An executor is marked operational or experimental, so a catalog can carry an executor that exists without it being the default choice for tenant builds.

What orchestration composes

A build assignment is assembled from several resolved contracts, each owned by its own capability:

Contract Decides
Artifact identity strategy What the produced artifact is called and how it is tagged
Artifact pull contract Which inputs may be pulled and how tags resolve
Artifact publish contract What must be true before a push is accepted
Builder publish handshake What the builder must report back
Context profile Where the build context comes from
Instance profile How much machine the build gets
Tenant artifact runtime Which registry and bucket the node uses

Each is resolved before the assignment exists, so the node receives decisions rather than policy to interpret.

The namespace is constrained

A build runs in a Kubernetes namespace the control plane names, validated against the naming rules before the assignment is authored. A build cannot be directed at an arbitrary namespace by the node that runs it.

Reconciliation, not fire and forget

Build requests are reconciled by the controller manager on every cycle, up to a bounded number, and the cycle reports what happened to them:

build_scanned_count, build_started_count, build_requeued_count,
build_failed_count, build_recovered_count

A build that a node abandoned is recovered by that loop rather than waiting for someone to notice. See The controller manager.