Skip to content

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.

Group and version
metal.platform-kit.org/v1alpha1
Scope
Cluster.
Written by
You, in git.
Read by
Convergence controller.
Host conditions
FirmwareConverged (the BMC) and SystemFirmwareConverged (the system parts).
Sample
profiles.yaml
Firmware convergence. A FirmwareProfile names the BMC firmware and the system firmware. A different BMC version gives a flashFirmware operation. A different system version gives a stageFirmware operation with a reboot.FirmwareProfilemanager + system[]HostOperationflashFirmwareHostOperationstageFirmware … talosRebootBMC firmwareBMC restarts, machine runsBIOS, NIC, RAIDapplies at the next resetmanager.versionsystem[].versionapprovedapproved
Two kinds of firmware, two kinds of operation. Both wait for approval.
spec.manager

The 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
FieldTypeDescription
layerinteger (int32)Layer orders overlapping profiles exactly as on BiosProfile: (layer, name) merge order, later overrides, same-layer disagreement is a conflict.Default: 0
managerobjectManager 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.
imagerequiredstringImage 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.Pattern: @sha256:[a-f0-9]{64}$
versionrequiredstringVersion is the desired firmware version, compared verbatim against the version the endpoint serves — the convergence observable.Bounds: at least 1 characters
matchrequiredobjectMatch selects Hosts by label (same two axes as BiosProfile.spec.match).
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.
system[]objectSystem 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).Bounds: at most 16 items
componentrequiredstringComponent 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.Bounds: at least 1 characters
imagerequiredstringImage is the digest-pinned OCI reference of the vendor's update package for this component.Pattern: @sha256:[a-f0-9]{64}$
versionrequiredstringVersion is the desired version, compared verbatim against the version the inventory entry reports.Bounds: at least 1 characters
apiVersion: metal.platform-kit.org/v1alpha1
kind: FirmwareProfile
metadata:
name: compute-system-firmware
spec:
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.