re-run reconcile every 5 seconds, to check node status changes

This commit is contained in:
Chris Lu 2020-11-08 17:00:41 -08:00
parent eccad4af1e
commit 9ba4b60d94

View File

@ -76,7 +76,7 @@ func (r *SeaweedReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
return result, err
}
return ctrl.Result{}, nil
return ctrl.Result{RequeueAfter: 5 * time.Second}, nil
}
func (r *SeaweedReconciler) findSeaweedCustomResourceInstance(ctx context.Context, log logr.Logger, req ctrl.Request) (*seaweedv1.Seaweed, bool, ctrl.Result, error) {