Skip to content

Commit 58f4775

Browse files
committed
Onboarding: Remove now redundant RetryOnConflict
The main loop is retrying already.
1 parent f808e40 commit 58f4775

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/controller/onboarding_controller.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import (
3030
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3131
"k8s.io/apimachinery/pkg/runtime"
3232
"k8s.io/apimachinery/pkg/types"
33-
"k8s.io/client-go/util/retry"
3433
ctrl "sigs.k8s.io/controller-runtime"
3534
k8sclient "sigs.k8s.io/controller-runtime/pkg/client"
3635
logger "sigs.k8s.io/controller-runtime/pkg/log"
@@ -104,9 +103,7 @@ func (r *OnboardingController) Reconcile(ctx context.Context, req ctrl.Request)
104103

105104
// We bail here out, because the openstack api is not the best to poll
106105
if hv.Status.HypervisorID == "" || hv.Status.ServiceID == "" {
107-
if err := retry.RetryOnConflict(retry.DefaultRetry, func() error {
108-
return r.ensureNovaProperties(ctx, hv)
109-
}); err != nil {
106+
if err := r.ensureNovaProperties(ctx, hv); err != nil {
110107
if errors.Is(err, errRequeue) {
111108
return ctrl.Result{RequeueAfter: defaultWaitTime}, nil
112109
}

0 commit comments

Comments
 (0)