-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReconcileRequeue for cluster resources was implemented #612
Conversation
"github.com/instaclustr/operator/pkg/scheduler" | ||
"sigs.k8s.io/controller-runtime/pkg/controller" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sort imports, please and in all such cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
@@ -34,7 +33,9 @@ import ( | |||
clusterresourcesv1beta1 "github.com/instaclustr/operator/apis/clusterresources/v1beta1" | |||
"github.com/instaclustr/operator/pkg/instaclustr" | |||
"github.com/instaclustr/operator/pkg/models" | |||
"github.com/instaclustr/operator/pkg/ratelimiter" | |||
"github.com/instaclustr/operator/pkg/scheduler" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have unsorted imports in the PR, please sort one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
3b336c1
to
17c459e
Compare
@@ -181,7 +180,7 @@ func (r *NodeReloadReconciler) Reconcile(ctx context.Context, req ctrl.Request) | |||
"status", nrs.Status, | |||
) | |||
|
|||
return models.ReconcileRequeue, nil | |||
return ctrl.Result{}, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part needs to be requeued.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -80,12 +82,12 @@ func (r *PostgreSQLUserReconciler) Reconcile(ctx context.Context, req ctrl.Reque | |||
l.Info("PostgreSQL user secret is not found", "request", req) | |||
r.EventRecorder.Event(u, models.Warning, models.NotFound, | |||
"Secret is not found, please create a new secret or set an actual reference") | |||
return models.ReconcileRequeue, nil | |||
return ctrl.Result{}, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it needs to be requeued as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
return models.ReconcileRequeue, nil | ||
return ctrl.Result{}, err | ||
} | ||
} | ||
|
||
return models.ExitReconcile, nil | ||
return ctrl.Result{}, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CustomRateLimiter is not added to the Redis User controller
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
49e9f3d
to
e159ff1
Compare
e159ff1
to
4f5f80a
Compare
Closes #606