Skip to content
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

Merged
merged 3 commits into from
Nov 26, 2024
Merged

Conversation

shashankram
Copy link

@shashankram shashankram commented Nov 25, 2024

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.

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]>
@solo-changelog-bot
Copy link

Issues linked to changelog:
k8sgateway#10379

Copy link

@stevenctl stevenctl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Copy link

github-actions bot commented Nov 25, 2024

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

@shashankram
Copy link
Author

/kick

@shashankram
Copy link
Author

/kick-ci

@soloio-bulldozer soloio-bulldozer bot merged commit a5c0926 into main Nov 26, 2024
18 of 19 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the shashankram/fix-10379 branch November 26, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants