Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: David VIEJO <[email protected]>
  • Loading branch information
dviejokfs committed Feb 4, 2024
1 parent 5f376fd commit fabc95b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion controllers/followerchannel/followerchannel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 3 additions & 1 deletion controllers/mainchannel/mainchannel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fabc95b

Please sign in to comment.