Skip to content

Commit

Permalink
requeue unknown error after 10 seconds instead
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Nov 7, 2024
1 parent f73e076 commit 51da1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/linodemachine_controller_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func retryIfTransient(err error, logger logr.Logger) (ctrl.Result, error) {
}
return ctrl.Result{RequeueAfter: reconciler.DefaultMachineControllerRetryDelay}, nil
}
logger.Error(err, "skipping requeue due to non-retryable error")
return ctrl.Result{Requeue: false}, err
logger.Error(err, "unknown Linode API error")
return ctrl.Result{RequeueAfter: reconciler.DefaultMachineControllerRetryDelay}, err
}

func fillCreateConfig(createConfig *linodego.InstanceCreateOptions, machineScope *scope.MachineScope) {
Expand Down

0 comments on commit 51da1ed

Please sign in to comment.