Check what the schema cannot check. The time zone exists. Each start is HH:MM and each day is known. Each weekly duration is from 1 minute to 168 hours. The selector parses.
Lay out the weekly slots in the time zone of the window, day by day, and add the once spans. A slot keeps its local start time across a daylight-saving change. Spans that touch make one longer opening.
Write open and nextChange, and requeue for the next change.
Before an operation writes its baseline, the executor asks the gate. An operation that started is never asked again, so a window that closes never stops a step.
An operation with metal.platform-kit.org/ignore-window is exempt. A new install (reasonProvisioning) is exempt, because it disturbs no running workload.
A window covers a Host if its hostSelector matches the Host labels, or if clusters names the cluster of the node that the Host runs.
If no window covers the Host, the operation starts.
If one covering window is open, the operation starts.
Otherwise the operation waits with OutsideMaintenanceWindow. It looks again when the next window opens, and at least each 5 minutes.