Skip to content

Commit fabc95b

Browse files
committed
update
Signed-off-by: David VIEJO <[email protected]>
1 parent 5f376fd commit fabc95b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

controllers/followerchannel/followerchannel_controller.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
3838
"sigs.k8s.io/controller-runtime/pkg/reconcile"
3939
"strings"
40+
"time"
4041
)
4142

4243
// FabricFollowerChannelReconciler reconciles a FabricFollowerChannel object
@@ -385,7 +386,9 @@ func (r *FabricFollowerChannelReconciler) updateCRStatusOrFailReconcile(ctx cont
385386
log.Error(err, fmt.Sprintf("%v failed to update the application status", ErrClientK8s))
386387
return reconcile.Result{}, err
387388
}
388-
return reconcile.Result{}, nil
389+
return reconcile.Result{
390+
RequeueAfter: 1 * time.Minute,
391+
}, nil
389392
}
390393

391394
func (r *FabricFollowerChannelReconciler) setConditionStatus(ctx context.Context, p *hlfv1alpha1.FabricFollowerChannel, conditionType hlfv1alpha1.DeploymentStatus, statusFlag bool, err error, statusUnknown bool) (update bool) {

controllers/mainchannel/mainchannel_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ func (r *FabricMainChannelReconciler) updateCRStatusOrFailReconcile(ctx context.
763763
log.Error(err, fmt.Sprintf("%v failed to update the application status", ErrClientK8s))
764764
return reconcile.Result{}, err
765765
}
766-
return reconcile.Result{}, nil
766+
return reconcile.Result{
767+
RequeueAfter: 1 * time.Minute,
768+
}, nil
767769
}
768770

769771
func (r *FabricMainChannelReconciler) setConditionStatus(ctx context.Context, p *hlfv1alpha1.FabricMainChannel, conditionType hlfv1alpha1.DeploymentStatus, statusFlag bool, err error, statusUnknown bool) (update bool) {

0 commit comments

Comments
 (0)