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

fix: Route with multiple parents has incorrect namespace in parentRef status #4592

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

zhaohuabing
Copy link
Member

Fixes: #4127

Release Notes: Yes

@zhaohuabing zhaohuabing requested a review from a team as a code owner October 31, 2024 09:27
routeParentStatusIdx := -1
defaultNamespace := gwapiv1.Namespace(metav1.NamespaceDefault)
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the root cause of the bug.

@zhaohuabing
Copy link
Member Author

zhaohuabing commented Oct 31, 2024

@guydc this is worth cherry-picking into v1.1.3. It happens whenever a xRoute targets multple Gateways in the same ns.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.44%. Comparing base (6e2587d) to head (d4b0bb3).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4592      +/-   ##
==========================================
+ Coverage   65.41%   65.44%   +0.02%     
==========================================
  Files         211      211              
  Lines       31887    31904      +17     
==========================================
+ Hits        20859    20878      +19     
  Misses       9782     9782              
+ Partials     1246     1244       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhaohuabing zhaohuabing changed the title fix route status wrong ns fix: Route with multiple parents has incorrect namespace in parentRef status Oct 31, 2024
Signed-off-by: Huabing Zhao <[email protected]>
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@zhaohuabing zhaohuabing merged commit 7285dda into envoyproxy:main Nov 1, 2024
24 checks passed
@zhaohuabing zhaohuabing deleted the fix-status-wrong-ns branch November 1, 2024 06:45
zhaohuabing added a commit to zhaohuabing/gateway that referenced this pull request Nov 1, 2024
… status (envoyproxy#4592)

fix route status wrong ns

Signed-off-by: Huabing Zhao <[email protected]>
(cherry picked from commit 7285dda)
Signed-off-by: Huabing Zhao <[email protected]>
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.

Route with multiple parents has incorrect namespace in parentref status
3 participants