Skip to content

Kind · metal.platform-kit.org/v1alpha1

BiosSettings

A BiosSettings is the BIOS state of one machine: what you want, what the machine has, and why. The operator writes it. Read it before you approve a BIOS change.

Group and version
metal.platform-kit.org/v1alpha1
Scope
Cluster.
Name
The name of its Host. The Host owns it, so it goes when the Host goes.
Written by
Convergence controller, from the matching BiosProfiles. Do not edit it.
Condition
Converged. The Host shows the same verdict as BiosConverged.
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.

The convergence controller reads the machine through its BMC. It writes the values that the machine has in status.observed, and the staged values in status.pending. Staged values apply at the next reset of the machine.

  1. A profile matches the Host. The controller makes the BiosSettings.
  2. The controller merges the profiles into spec.attributes and names the source of each value in status.provenance.
  3. It validates the values against the BiosSchema. A value that the machine does not accept gives SchemaViolation.
  4. Firmware goes first. While the firmware of the machine is not converged, the reason is AwaitingFirmware.
  5. The values differ: the controller proposes a HostOperation and records it in status.proposed. The reason is AwaitingOperation.
  6. The operation ran and the values agree: Converged=True, reason InSync.

If the Host runs a node, the operation drains it first and waits for it after the reboot:

applyBios → waitEtcdHealthy* → cordon → drain → talosReboot (PowerCycle) → waitNodeReady → waitEtcdHealthy* → uncordon

The steps with * are for a control plane only. Without a node, the operation is ApplyBios, then PowerCycle.

FieldTypeDescription
attributesmap[string]anyAttributes is the merged desired attribute map. When two profiles conflict, the previous merge stays as it is: the operator alerts and holds, and never applies part of a conflicted state. status.provenance names the profile of each key.
FieldTypeDescription
conditions[]objectConditions are the truth — the only thing reconcilers branch on.
observedmap[string]anyObserved caches the managed attributes as last read from the machine — status-as-cache: an unreachable pass keeps the last view.
pendingmap[string]anyPending caches the managed attributes staged in the @Redfish.Settings object — applied at the next system reset.
proposedobjectProposed is the plan memory for the BIOS domain.
operationrequiredstringOperation is the proposed HostOperation as namespace/name.
planHashrequiredstringPlanHash is the sha256 of the desired state the operation serves.
provenancemap[string]stringProvenance names the profile that gave each attribute. Thus the object tells what the host gets and why, and you need not do the merge yourself.

Columns of kubectl get biossettings (the columns marked wide show only with -o wide):

ColumnValue
NAME.metadata.name
CONVERGED.status.conditions[?(@.type=="Converged")].status
REASON.status.conditions[?(@.type=="Converged")].reason
AGE.metadata.creationTimestamp
Reason Status Meaning
InSync True The machine has all wanted values.
AwaitingOperation False The operator proposed an operation. It waits for approval or runs.
AwaitingFirmware False The firmware converges first.
ProfileConflict False Two profiles on one layer disagree. The last merge stays.
SchemaViolation False A value is not in the BiosSchema.
OperationFailed, OperationGone False The operation failed, or a person deleted it.
SelfDisruption False The machine runs the operator. The operator proposes no change.
DiskNotWiped False The machine can hold a released node. It is not powered on.
InstalledNodeMissing False The Host runs a node that has no TalosNode. The operator cannot drain it.
NoReachablePath Unknown The BMC does not answer.

A deleted proposal refuses it. The operator makes a new proposal only after a profile changes. To try a failed proposal again, use pk-metal retry.

Terminal window
$ kubectl get biossettings
NAME CONVERGED REASON AGE
sim-0001 True InSync 3d
sim-0002 False AwaitingOperation 2m