Skip to content

Commit

Permalink
nodereload controller fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohdan Siryk authored and Bohdan Siryk committed Nov 8, 2023
1 parent 7a6135a commit 42a79d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/clusterresources/nodereload_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ func (r *NodeReloadReconciler) Reconcile(ctx context.Context, req ctrl.Request)
}

if nrs.Status.NodeInProgress == nil {
nodeInProgress := nrs.Status.PendingNodes[0]
n := *nrs.Status.PendingNodes[0]
nodeInProgress := &n

err := r.API.CreateNodeReload(nodeInProgress)
if err != nil {
Expand Down

0 comments on commit 42a79d0

Please sign in to comment.