omni/internal
Oguz Kilcan 82d9bc5b1a
fix: solve new machines not joining omni if they are part of a cluster
When a new machine is added to omni, we were checking whether the machine is in maintenance mode by using `machinestatus.stage` under `MachineStatusSnapshot` resource. However, at this point MachineStatusSnapshot doesn't exist yet.

Fixed the condition to also check existence of MachineStatusSnapshot as well as machine status stage.

Signed-off-by: Oguz Kilcan <oguz.kilcan@siderolabs.com>
2026-01-16 12:48:43 +01:00
..
2026-01-16 11:15:02 +01:00