-
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
gateway2/delegation: fix cycle detection #10405
Conversation
There's a bug in how cycles are detected when evaluating a delegation chain, because of which a multi-level delegation tree with the same child route being referenced by multiple parent HTTP routes is broken. This change fixes the detection of cycles during the evaluation of the delegation chain. --- Testing done: Added a new translator unit test which fails without the fix. Signed-off-by: Shashank Ram <[email protected]>
Issues linked to changelog: |
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.
good catch
Visit the preview URL for this PR (updated for commit 33567f6): https://gloo-edge--pr10405-shashankram-fix-1037-khm7s19y.web.app (expires Tue, 03 Dec 2024 15:49:08 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
/kick |
/kick-ci |
There's a bug in how cycles are detected when evaluating a delegation chain, because of which a multi-level delegation tree with the same child route being referenced by multiple parent HTTP routes is broken. This change fixes the detection of cycles during the evaluation of the delegation chain.
Refer to k8sgateway#10379 for more details on how to reproduce this.
Testing done:
Added a new translator unit test which fails without the fix.