Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
komer3 committed Dec 16, 2024
1 parent 1712680 commit 4f06704
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/controller/linodemachine_controller_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ func createDisks(ctx context.Context, logger logr.Logger, machineScope *scope.Ma
conditions.Set(machineScope.LinodeMachine, metav1.Condition{
Type: ConditionPreflightAdditionalDisksCreated,
Status: metav1.ConditionTrue,
Reason: "AdditionalDisksCreated",
})
return nil
}
Expand Down Expand Up @@ -762,13 +763,15 @@ func resizeRootDisk(ctx context.Context, logger logr.Logger, machineScope *scope
conditions.Set(machineScope.LinodeMachine, metav1.Condition{
Type: ConditionPreflightRootDiskResizing,
Status: metav1.ConditionTrue,
Reason: "RootDiskResizing",
})
}

conditions.Delete(machineScope.LinodeMachine, ConditionPreflightRootDiskResizing)
conditions.Set(machineScope.LinodeMachine, metav1.Condition{
Type: ConditionPreflightRootDiskResized,
Status: metav1.ConditionTrue,
Reason: "RootDiskResized",
})

return nil
Expand Down

0 comments on commit 4f06704

Please sign in to comment.