Kind · metal.platform-kit.org/v1alpha1
BiosSchema
A BiosSchema is the BIOS attribute registry of one machine. It tells you which attributes a BiosProfile can set on that machine, and which values they accept.
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.
- Written by
- Convergence controller, from the attribute registry that the BMC serves through Redfish. Do not edit it.
- Status
- None. The spec is the data.
How it connects
Section titled “How it connects”The convergence controller writes the BiosSchema when it reads the BIOS of the machine.
Before it proposes a change, it checks each wanted value in the BiosSettings against this schema.
A wrong value stops the change with reason SchemaViolation. The machine never gets the value.
The schema can change after a firmware update. That is why firmware converges before BIOS.
| Field | Type | Description |
|---|---|---|
attributesrequired | []object | Attributes lists the registry's entries, sorted by name. The operator checks the desired values of a BiosSettings against this list before it proposes an operation. Without the check, the machine would refuse an unknown attribute, and it would ignore a value out of range. |
allowedValues | []string | AllowedValues enumerates the legal values; empty for non-enumerations. |
namerequired | string | |
typerequired | string | Type is the registry's attribute type: Enumeration, Boolean, Integer or String — kept as served. |
registry | string | Registry is the registry identity as the Bios resource advertises it, kept verbatim (e.g. BiosAttributeRegistry.v1_0_0). |
Example
Section titled “Example”Find the values that an attribute accepts:
$ kubectl get biosschema sim-0001 -o jsonpath='{.spec.attributes[?(@.name=="QuietBoot")]}'{"name":"QuietBoot","type":"Boolean"}