Skip to content

Instance and context profiles

Two profiles size and feed a build. The instance profile says how much machine it gets; the context profile says where its build context comes from. Both are resolved centrally, so a build's resources and inputs are recorded rather than decided on the node.

Instance profiles

Five sizes exist, and medium is the default:

micro   mini   medium   large   xlarge

A build names a size and the control plane resolves it to a resource profile. A name outside the five normalises to the default rather than failing, so a build never stalls on an unrecognised size.

Sizing is a closed set for the same reason the other closed sets exist: five named sizes can be reasoned about in policy, and arbitrary resource requests cannot.

Context profiles

The build context is where the source of the build comes from. Two modes are supported, plus the unset case: pvc, a persistent volume in the cluster addressed as pvc://, and object_store, addressed by its scheme.

Five object store schemes are recognised, each mapping to a provider:

s3://       s3
gcs://      gcs
azblob://   azure_blob
minio://    minio
oci://      oci

The scheme is what identifies the provider, so a context reference carries its own provider rather than needing a separate field that could disagree with it.

The context is pinned by digest

A context reference carries a digest, validated against the expected shape. A pinned context makes a build reproducible from its record: the same context digest and the same resolved inputs produce the same build.

Where the two profiles land

flowchart LR
  subgraph BA["BUILD ASSIGNMENT"]
    direction TB
    IP["Instance profile<br/>resolved size"]
    CX["Context reference<br/>scheme, location, digest"]
  end
  subgraph YI["YOUR INFRASTRUCTURE"]
    direction TB
    JOB["Build job"]
    SRC[("Build context<br/>pvc or object store")]
  end
  IP -->|"sizes"| JOB
  CX -->|"names and pins"| SRC
  SRC -->|"read"| JOB

The assignment carries both answers, so the build job's size and its source are both fixed before it starts. The context is read from your own storage and checked against the digest in the assignment.

Why both travel on the assignment

A node receives the resolved size and the pinned context rather than a policy to interpret. Two builds of the same target therefore run at the same size against the same context, whichever node picks them up, and the record of what a build consumed is complete before it starts.

See Build orchestration for the other contracts composed alongside these, and Publish and pull contracts for how the build's image inputs are resolved.