Skip to content

Commit

Permalink
Initialize VM and update labels in the same reconciliation
Browse files Browse the repository at this point in the history
  • Loading branch information
thiyyakat committed Sep 5, 2024
1 parent c8ca49e commit 1970a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/provider/machinecontroller/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,13 @@ func (c *controller) triggerCreationFlow(ctx context.Context, createMachineReque
// Return error even when machine object is updated
err = fmt.Errorf("Machine creation in process. Machine UPDATE successful")
}
return machineutils.ShortRetry, err
}
if uninitializedMachine {
retryPeriod, err := c.initializeMachine(ctx, createMachineRequest.Machine, createMachineRequest.MachineClass, createMachineRequest.Secret)
if err != nil {
return retryPeriod, err
}
return machineutils.ShortRetry, err
}
if machine.Status.CurrentStatus.Phase == "" || machine.Status.CurrentStatus.Phase == v1alpha1.MachineCrashLoopBackOff {
clone := machine.DeepCopy()
Expand Down

0 comments on commit 1970a2a

Please sign in to comment.