From fabc95bd834a52b76fd5ac24f0b7dae6a4dd0faa Mon Sep 17 00:00:00 2001 From: David VIEJO Date: Sun, 4 Feb 2024 18:09:31 +0100 Subject: [PATCH] update Signed-off-by: David VIEJO --- controllers/followerchannel/followerchannel_controller.go | 5 ++++- controllers/mainchannel/mainchannel_controller.go | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/controllers/followerchannel/followerchannel_controller.go b/controllers/followerchannel/followerchannel_controller.go index 4421bfba..325b04ed 100644 --- a/controllers/followerchannel/followerchannel_controller.go +++ b/controllers/followerchannel/followerchannel_controller.go @@ -37,6 +37,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil" "sigs.k8s.io/controller-runtime/pkg/reconcile" "strings" + "time" ) // FabricFollowerChannelReconciler reconciles a FabricFollowerChannel object @@ -385,7 +386,9 @@ func (r *FabricFollowerChannelReconciler) updateCRStatusOrFailReconcile(ctx cont log.Error(err, fmt.Sprintf("%v failed to update the application status", ErrClientK8s)) return reconcile.Result{}, err } - return reconcile.Result{}, nil + return reconcile.Result{ + RequeueAfter: 1 * time.Minute, + }, nil } func (r *FabricFollowerChannelReconciler) setConditionStatus(ctx context.Context, p *hlfv1alpha1.FabricFollowerChannel, conditionType hlfv1alpha1.DeploymentStatus, statusFlag bool, err error, statusUnknown bool) (update bool) { diff --git a/controllers/mainchannel/mainchannel_controller.go b/controllers/mainchannel/mainchannel_controller.go index c591996d..cbad3646 100644 --- a/controllers/mainchannel/mainchannel_controller.go +++ b/controllers/mainchannel/mainchannel_controller.go @@ -763,7 +763,9 @@ func (r *FabricMainChannelReconciler) updateCRStatusOrFailReconcile(ctx context. log.Error(err, fmt.Sprintf("%v failed to update the application status", ErrClientK8s)) return reconcile.Result{}, err } - return reconcile.Result{}, nil + return reconcile.Result{ + RequeueAfter: 1 * time.Minute, + }, nil } func (r *FabricMainChannelReconciler) setConditionStatus(ctx context.Context, p *hlfv1alpha1.FabricMainChannel, conditionType hlfv1alpha1.DeploymentStatus, statusFlag bool, err error, statusUnknown bool) (update bool) {