Skip to content

Commit

Permalink
Provide a little more clarity on status error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jun 13, 2022
1 parent 51e4dad commit 5280cc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/falcon/falconnodesensor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (r *FalconNodeSensorReconciler) Reconcile(ctx context.Context, req ctrl.Req
nodesensor.Status.Sensor = &strings.Split(image, ":")[1]
err = r.Status().Update(ctx, nodesensor)
if err != nil {
log.Error(err, "Failed to update FalconNodeSensor status")
log.Error(err, "Failed to update FalconNodeSensor status for nodesensor.Status.Sensor")
return ctrl.Result{}, err
}
}
Expand All @@ -270,7 +270,7 @@ func (r *FalconNodeSensorReconciler) Reconcile(ctx context.Context, req ctrl.Req
nodesensor.Status.Version = version.Get()
err = r.Status().Update(ctx, nodesensor)
if err != nil {
log.Error(err, "Failed to update FalconNodeSensor status")
log.Error(err, "Failed to update FalconNodeSensor status for nodesensor.Status.Version")
return ctrl.Result{}, err
}
}
Expand Down Expand Up @@ -683,7 +683,7 @@ func (r *FalconNodeSensorReconciler) conditionsUpdate(condType string, status me
})

if err := r.Status().Update(ctx, nodesensor); err != nil {
logger.Error(err, "Failed to update FalconNodeSensor status")
logger.Error(err, "Failed to update FalconNodeSensor status", "Failed to update the Condition at Reasoning", reason)
return err
}

Expand Down

0 comments on commit 5280cc7

Please sign in to comment.