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.
At a glance
Section titled “At a glance”- 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 asBiosConverged.
How it connects
Section titled “How it connects”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.
Lifecycle
Section titled “Lifecycle”- A profile matches the Host. The controller makes the BiosSettings.
- The controller merges the profiles into
spec.attributesand names the source of each value instatus.provenance. - It validates the values against the BiosSchema. A value that the machine does not accept gives
SchemaViolation. - Firmware goes first. While the firmware of the machine is not converged, the reason is
AwaitingFirmware. - The values differ: the controller proposes a HostOperation and records it in
status.proposed. The reason isAwaitingOperation. - The operation ran and the values agree:
Converged=True, reasonInSync.
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* → uncordonThe steps with * are for a control plane only. Without a node, the operation is ApplyBios, then PowerCycle.
| Field | Type | Description |
|---|---|---|
attributes | map[string]any | Attributes 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. |
Status
Section titled “Status”| Field | Type | Description |
|---|---|---|
conditions | []object | Conditions are the truth — the only thing reconcilers branch on. |
observed | map[string]any | Observed caches the managed attributes as last read from the machine — status-as-cache: an unreachable pass keeps the last view. |
pending | map[string]any | Pending caches the managed attributes staged in the @Redfish.Settings object — applied at the next system reset. |
proposed | object | Proposed is the plan memory for the BIOS domain. |
operationrequired | string | Operation is the proposed HostOperation as namespace/name. |
planHashrequired | string | PlanHash is the sha256 of the desired state the operation serves. |
provenance | map[string]string | Provenance 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):
| Column | Value |
|---|---|
NAME | .metadata.name |
CONVERGED | .status.conditions[?(@.type=="Converged")].status |
REASON | .status.conditions[?(@.type=="Converged")].reason |
AGE | .metadata.creationTimestamp |
Reasons of Converged
Section titled “Reasons of Converged”| 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.
Example
Section titled “Example”$ kubectl get biossettingsNAME CONVERGED REASON AGEsim-0001 True InSync 3dsim-0002 False AwaitingOperation 2m