Skip to content

Commit

Permalink
power on machine in initial state without inventory reference
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Bortnikov <[email protected]>
  • Loading branch information
aobort committed Jun 13, 2024
1 parent 7aef57f commit 06ff8c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/controller/machine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ const (
MachineSpecOOBRefName = ".spec.oobRef.Name"
)

var nonInitialStates = []metalv1alpha1.MachineState{
metalv1alpha1.MachineStateMaintenance,
metalv1alpha1.MachineStateAvailable,
metalv1alpha1.MachineStateReserved,
metalv1alpha1.MachineStateTainted,
metalv1alpha1.MachineStateError,
}

func NewMachineReconciler() (*MachineReconciler, error) {
return &MachineReconciler{}, nil
}
Expand Down

0 comments on commit 06ff8c1

Please sign in to comment.