Skip to content

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.

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
BIOS convergence. BiosProfiles merge by layer into one BiosSettings for each Host. The BiosSchema from the machine validates it. On drift the operator proposes a HostOperation that stages the values and reboots the machine.BiosProfilelayer 0: hardwareBiosProfilelayer 10: roleBiosSettingsspec + provenanceBiosSchemathe attribute registryHostOperationapplyBios + rebootBMCRedfishmergevalidatesdriftapprovedreads registry and values
BIOS convergence for one Host. You write the profiles. The operator writes the rest.
  1. The convergence controller finds all profiles whose match selects the Host.
  2. It sorts them by layer and name, and merges them in that order. A higher layer overrides a lower layer.
  3. It writes the result into the BiosSettings of the Host, with the profile that gave each value.
  4. It checks the values against the BiosSchema of the machine.
  5. If the machine differs, it proposes a HostOperation with ApplyBios. A person approves it.

Convergence explains the model.

Two label axes select machines:

What the machine is
Labels that the operator finds, for example metal.platform-kit.org/vendor and metal.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.

FieldTypeDescription
attributesrequiredmap[string]anyAttributes 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.Bounds: at least 1 entries
layerinteger (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.Default: 0
matchrequiredobjectMatch 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[]objectLabel requirements that the object must meet. All must match.
keyrequiredstringThe label key.
operatorrequiredstringIn, NotIn, Exists or DoesNotExist.
values[]stringThe values for In and NotIn. Exists and DoesNotExist take no values.
matchLabelsmap[string]stringLabels that the object must have, as key and value pairs. All must match.
apiVersion: metal.platform-kit.org/v1alpha1
kind: BiosProfile
metadata:
name: role-worker
spec:
match:
matchLabels:
role: worker
layer: 10
attributes:
QuietBoot: true