-
Notifications
You must be signed in to change notification settings - Fork 338
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
fix(kuma-cp): gateway reconciliation loops forever #4034
Conversation
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
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.
lgtm
Codecov Report
@@ Coverage Diff @@
## master #4034 +/- ##
==========================================
- Coverage 55.98% 55.96% -0.03%
==========================================
Files 919 919
Lines 55267 55285 +18
==========================================
- Hits 30942 30941 -1
- Misses 21875 21893 +18
- Partials 2450 2451 +1
Continue to review full report at Codecov.
|
@@ -73,11 +75,14 @@ func (r *GatewayInstanceReconciler) Reconcile(ctx context.Context, req kube_ctrl | |||
|
|||
updateStatus(gatewayInstance, svc, deployment) | |||
|
|||
if err := r.Client.Status().Patch(ctx, gatewayInstance, kube_client.MergeFrom(orig)); err != 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.
I think the right way to handle this is using SetStatusCondition
like in the gatewayapi controllers
…)" This reverts commit 961ba79.
…)" This reverts commit 961ba79. Signed-off-by: Mike Beaumont <[email protected]>
…on (#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Signed-off-by: Jakub Dyszkiewicz <[email protected]> Signed-off-by: Sally Blich <[email protected]>
…on (kumahq#4051) * Revert "fix(kuma-cp): gateway reconciliation loops forever (kumahq#4034)" This reverts commit 961ba79. * fix(gateway): fix status updating in MeshGatewayInstance reconciliation * chore(gateway): add back verbose log for reconcile begin Signed-off-by: Mike Beaumont <[email protected]> Signed-off-by: Sally Blich <[email protected]>
Summary
Gateway API reconciliation was stuck in a loop (reconciling forever) because GatewayInstance was constantly updated.
We should only update Status of objects if there is any change to the status.
Issues resolved
No issues reported
Documentation
- [ ] Link to the website documentation PRTesting
Backwards compatibility
- [ ] UpdateUPGRADE.md
with any steps users will need to take when upgrading.- [ ] Addbackport-to-stable
label if the code follows our backporting policy