Kind · metal.platform-kit.org/v1alpha1
FirmwareProfile
A FirmwareProfile names the firmware versions for the Hosts that match its selector. You write it in git. A machine with other versions gets a proposed HostOperation.
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.
- Host conditions
FirmwareConverged(the BMC) andSystemFirmwareConverged(the system parts).- Sample
- profiles.yaml
How it connects
Section titled “How it connects”spec.managerThe firmware of the BMC. A different version gives an operation with FlashFirmware. The BMC restarts. The machine continues to run. Only a BMC that offers the multipart push transport gets a flash. Other BMCs stay at reason
NoUpdateTransport.spec.system[]The firmware of system parts, as the firmware inventory of the BMC names them. A different version gives an operation with StageFirmware and a reboot. The new version applies at the reset. On a machine that runs a node, the operation drains the node first.
Firmware converges before BIOS, because a firmware update can change the BiosSchema.
Profiles merge by layer and name, as a BiosProfile does. Two profiles on one layer that disagree are a conflict (ProfileConflict).
Rules for the whole spec (the API server refuses a change that breaks one):
- give manager, system, or both
| Field | Type | Description |
|---|---|---|
layer | integer (int32) | Layer orders overlapping profiles exactly as on BiosProfile: (layer, name) merge order, later overrides, same-layer disagreement is a conflict. |
manager | object | Manager is the desired management-controller firmware. It is flashed over the multipart push the endpoint advertises; endpoints that advertise only SimpleUpdate hold at NoUpdateTransport rather than flashing over an unproven path. Flashing the manager does not stop the machine it manages. |
imagerequired | string | Image is a digest-pinned OCI reference to the firmware image (a single- layer artifact in the internal registry, e.g. registry.pk.internal:5000/firmware/x12-bmc@sha256:…). The digest is required: the executor refuses to flash bytes it cannot verify. |
versionrequired | string | Version is the desired firmware version, compared verbatim against the version the endpoint serves — the convergence observable. |
matchrequired | object | Match selects Hosts by label (same two axes as BiosProfile.spec.match). |
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. |
system | []object | System is the desired system firmware: BIOS/UEFI, network cards, RAID controllers, whatever the machine's UpdateService lists in its FirmwareInventory. Each image applies at the next reset of the machine. Thus, on a machine that runs a node, the operation drains the node first and waits for the node after the reset. System firmware converges after the manager's and before BIOS settings (a BIOS update can change the settings it offers). |
componentrequired | string | Component matches FirmwareInventory member ids, as a regular expression over the whole id: BIOS, NIC\.Slot\.[0-9]+, RAID.*. Ids are vendor shaped; kubectl describe managementendpoint lists the ones a machine serves. Every matching entry is brought to the version; a pattern that matches nothing holds the profile at NoMatchingComponent. |
imagerequired | string | Image is the digest-pinned OCI reference of the vendor's update package for this component. |
versionrequired | string | Version is the desired version, compared verbatim against the version the inventory entry reports. |
Example
Section titled “Example”apiVersion: metal.platform-kit.org/v1alpha1kind: FirmwareProfilemetadata: name: compute-system-firmwarespec: match: matchLabels: metal.platform-kit.org/vendor: Generic system: - component: BIOS version: "1.9.0" image: registry.example.org/firmware/generic-bios@sha256:<digest> - component: NIC\.Slot\.[0-9]+ version: "22.31.6" image: registry.example.org/firmware/generic-nic@sha256:<digest>component is a regular expression over the full inventory ID.
kubectl describe managementendpoint lists the IDs that a machine has.