Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Ganesh <[email protected]>
  • Loading branch information
Rahul Ganesh committed Jan 23, 2024
1 parent 1f07d51 commit 9a8953c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/controlplaneupgrade_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (r *ControlPlaneUpgradeReconciler) updateStatus(ctx context.Context, log lo
log.Info("Updating K8s version in machine", "Machine", machine.Name)
machine.Spec.Version = &nodeUpgrade.Spec.KubernetesVersion
if err := machinePatchHelper.Patch(ctx, machine); err != nil {
return fmt.Errorf("updating status for machine %s: %v", machine.Name, err)
return fmt.Errorf("updating spec for machine %s: %v", machine.Name, err)
}

Check warning on line 230 in controllers/controlplaneupgrade_controller.go

View check run for this annotation

Codecov / codecov/patch

controllers/controlplaneupgrade_controller.go#L229-L230

Added lines #L229 - L230 were not covered by tests
nodesUpgradeCompleted++
nodesUpgradeRequired--
Expand Down

0 comments on commit 9a8953c

Please sign in to comment.