Skip to content

Commit

Permalink
change controllerError to lowercase (kubernetes-sigs#1101)
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Coutaud authored and k8s-ci-robot committed Jul 2, 2019
1 parent e9145e9 commit b37cf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/cluster/cluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/klog"
clusterv1 "sigs.k8s.io/cluster-api/pkg/apis/cluster/v1alpha2"
controllerError "sigs.k8s.io/cluster-api/pkg/controller/error"
controllererror "sigs.k8s.io/cluster-api/pkg/controller/error"
"sigs.k8s.io/cluster-api/pkg/util"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/controller"
Expand Down Expand Up @@ -137,7 +137,7 @@ func (r *ReconcileCluster) Reconcile(request reconcile.Request) (reconcile.Resul

klog.Infof("reconciling cluster object %v triggers idempotent reconcile.", name)
if err := r.actuator.Reconcile(cluster); err != nil {
if requeueErr, ok := errors.Cause(err).(controllerError.HasRequeueAfterError); ok {
if requeueErr, ok := errors.Cause(err).(controllererror.HasRequeueAfterError); ok {
klog.Infof("Actuator returned requeue-after error: %v", requeueErr)
return reconcile.Result{Requeue: true, RequeueAfter: requeueErr.GetRequeueAfter()}, nil
}
Expand Down

0 comments on commit b37cf11

Please sign in to comment.