diff --git a/pkg/controller/machine/controller.go b/pkg/controller/machine/controller.go index c8dd6b31b6c7..0c9d3527e904 100644 --- a/pkg/controller/machine/controller.go +++ b/pkg/controller/machine/controller.go @@ -167,12 +167,18 @@ func (r *ReconcileMachine) Reconcile(request reconcile.Request) (reconcile.Resul glog.Infof("Actuator returned requeue-after error: %v", requeueErr) return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.RequeueAfter}, nil } + return reconcile.Result{}, err } + return reconcile.Result{}, nil } // Machine resource created. Machine does not yet exist. glog.Infof("Reconciling machine object %v triggers idempotent create.", m.ObjectMeta.Name) if err := r.create(m); err != nil { glog.Warningf("unable to create machine %v: %v", name, err) + if requeueErr, ok := err.(*controllerError.RequeueAfterError); ok { + glog.Infof("Actuator returned requeue-after error: %v", requeueErr) + return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.RequeueAfter}, nil + } return reconcile.Result{}, err } return reconcile.Result{}, nil