Kind · metal.platform-kit.org/v1alpha1
BiosProfile
A BiosProfile is a set of BIOS values for the Hosts that match its selector. You write it. No controller changes it: it states what you want.
At a glance
Section titled “At a glance”- Group and version
metal.platform-kit.org/v1alpha1- Scope
- Cluster.
- Written by
- You, in git.
- Read by
- Convergence controller. It merges the matching profiles into one BiosSettings for each Host.
- Phases
- None. A profile has no status.
- Sample
- profiles.yaml
How it connects
Section titled “How it connects”- The convergence controller finds all profiles whose
matchselects the Host. - It sorts them by
layerand name, and merges them in that order. A higher layer overrides a lower layer. - It writes the result into the BiosSettings of the Host, with the profile that gave each value.
- It checks the values against the BiosSchema of the machine.
- If the machine differs, it proposes a HostOperation with ApplyBios. A person approves it.
Convergence explains the model.
Layers
Section titled “Layers”Two label axes select machines:
- What the machine is
- Labels that the operator finds, for example
metal.platform-kit.org/vendorandmetal.platform-kit.org/model. They are present also on a free machine. Use them for a hardware baseline, for example layer 0. - What the machine is for
- Labels from the bound HostClaim, for example
role: worker. They go away when the claim goes. Use them for a role profile, for example layer 10.
Two profiles on the same layer that set one attribute to different values are a conflict.
The operator then keeps the last merge and sets BiosConverged=False with reason ProfileConflict. It changes nothing.
An attribute that no profile names is not managed. A higher layer can change a value, but cannot remove an attribute from management.
| Field | Type | Description |
|---|---|---|
attributesrequired | map[string]any | Attributes are the BIOS attributes this profile manages, values as the vendor's attribute registry types them (enum string, boolean, integer). An attribute omitted here is unmanaged — a higher layer can override a value but not retract management. |
layer | integer (int32) | Layer orders profiles that overlap. The merge sorts the matched profiles by layer and name, and a higher layer overrides a lower one. For example, a role profile (layer 10) overrides a hardware baseline (layer 0). Two profiles on the SAME layer that set one attribute to different values conflict. A conflict holds the whole merge. |
matchrequired | object | Match selects Hosts by label. There are two types of labels. Intent labels come from the bound claim (role: worker); a machine without a claim has none. Fact labels come from discovery (metal.platform-kit.org/vendor, …/model); every machine has them, so use them for hardware baselines. |
matchExpressions | []object | Label requirements that the object must meet. All must match. |
keyrequired | string | The label key. |
operatorrequired | string | In, NotIn, Exists or DoesNotExist. |
values | []string | The values for In and NotIn. Exists and DoesNotExist take no values. |
matchLabels | map[string]string | Labels that the object must have, as key and value pairs. All must match. |
Example
Section titled “Example”apiVersion: metal.platform-kit.org/v1alpha1kind: BiosProfilemetadata: name: role-workerspec: match: matchLabels: role: worker layer: 10 attributes: QuietBoot: true