From d2e7f8e8a90d7f5ca6fa7ea67fbdd9b453039e5c Mon Sep 17 00:00:00 2001 From: Matt Richerson Date: Thu, 5 Dec 2024 13:04:31 -0600 Subject: [PATCH] Requeue in NnfAccess after NnfNodeBlockStorage conflict The NnfNodeBlockStorage resource is not owned by the NnfAccess, so the NnfAccess won't be requeued after the client cache updates. Signed-off-by: Matt Richerson --- internal/controller/nnf_access_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/nnf_access_controller.go b/internal/controller/nnf_access_controller.go index d5fdf698..ea75f168 100644 --- a/internal/controller/nnf_access_controller.go +++ b/internal/controller/nnf_access_controller.go @@ -217,7 +217,7 @@ func (r *NnfAccessReconciler) mount(ctx context.Context, access *nnfv1alpha4.Nnf err = r.addBlockStorageAccess(ctx, access, storageMapping) if err != nil { if apierrors.IsConflict(err) { - return &ctrl.Result{}, nil + return &ctrl.Result{RequeueAfter: time.Second * 2}, nil } return nil, dwsv1alpha2.NewResourceError("unable to add endpoints to NnfNodeStorage").WithError(err)