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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.50%. Comparing base (74f4377) to head (095e62d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4592      +/-   ##
==========================================
+ Coverage   65.47%   65.50%   +0.03%     
==========================================
  Files         211      211              
  Lines       31854    31871      +17     
==========================================
+ Hits        20855    20878      +23     
+ Misses       9754     9750       -4     
+ Partials     1245     1243       -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 <zhaohuabing@gmail.com>
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 !

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
2 participants