Concept
Maintenance windows
A person still approves each change. A MaintenanceWindow decides only when an approved change starts.
- Covered machine
- A machine that
spec.hostSelectororspec.clustersselects. Either match is enough. - Open
- The time inside a weekly or a one-time window, in
spec.timeZone. Weekly windows keep the wall clock time across a daylight saving change. - ignore-window
- The operation annotation
metal.platform-kit.org/ignore-window. Its value is your username and your reason, for examplealice: CVE fix. The operation then starts outside the windows. An empty value does not count.
- An approved operation on a covered machine waits until one of its windows is open.
- When a window opens, the waiting operations start. Nobody has to be awake.
- A step that runs is never stopped when the window closes.
- A machine that no window covers is not held.
- New installs (reason
Provisioning) are not held. - A window that the operator cannot read is
Valid=Falseand never opens. A mistake holds work back. - A rollout that reaches a node outside its windows waits between nodes.
Where you see it
Section titled “Where you see it”blockedOn: OutsideMaintenanceWindowin pk-metal status. It does not count as "needs a person".kubectl get maintenancewindowsshows OPEN and NEXT CHANGE.- The metric
pk_metal_operation_blocked{reason="OutsideMaintenanceWindow"}.