-
Notifications
You must be signed in to change notification settings - Fork 1.5k
tg / lb conf finalizers #4230
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
tg / lb conf finalizers #4230
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zac-nixon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
a7ddcae
to
0e7363a
Compare
@@ -60,13 +58,16 @@ func (h *enqueueRequestsForGatewayClassEvent) Generic(ctx context.Context, e eve | |||
} | |||
|
|||
func (h *enqueueRequestsForGatewayClassEvent) enqueueImpactedGateways(ctx context.Context, gwClass *gatewayv1.GatewayClass, queue workqueue.TypedRateLimitingInterface[reconcile.Request]) { | |||
gwList := gatewayutils.GetGatewaysManagedByGatewayClass(ctx, h.k8sClient, gwClass, h.gwController) | |||
gwList, err := gatewayutils.GetGatewaysManagedByLBController(ctx, h.k8sClient, h.gwController) |
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.
We should only enqueue the Gateways which are managed by GatewayClass rather than controller for gwclass events. Use GetGatewaysManagedByGatewayClass
@@ -165,7 +167,11 @@ type gatewayReconciler struct { | |||
func (r *gatewayReconciler) Reconcile(ctx context.Context, req reconcile.Request) (ctrl.Result, error) { | |||
r.reconcileTracker(req.NamespacedName) | |||
err := r.reconcileHelper(ctx, req) | |||
return runtime.HandleReconcileError(err, r.logger) | |||
res, reconcileErr := runtime.HandleReconcileError(err, r.logger) |
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.
Why cant we simply return runtime.HandleReconcileError(err, r.logger)
?
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.
initially had logging here, will change back
/retest |
/lgtm |
Description
Adds finalizers to TargetGroupConfiguration, LoadbalancerConfiguration, and GatewayClass (only if the controller manages it).
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯