fix: avoid appending same Backends twice to resource map#6021
fix: avoid appending same Backends twice to resource map#6021mathetake wants to merge 3 commits intoenvoyproxy:mainfrom
Conversation
There was a problem hiding this comment.
or can we simply remove this function? at the end of the day, all referenced backends are properly added later in processBackendRefs. @arkodg
There was a problem hiding this comment.
@guydc was this added for the case where an external gvk can reference a backend ?
There was a problem hiding this comment.
If I remember correctly, the main purpose was to add the backends so that we can update their status to reflect the situation where the backend flag is not enabled, regardless of them being referenced by any backendref.
We can change the behavior to reflect that in the xRoute/Policy resource status instead. I think that the UX change is not very significant here.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6021 +/- ##
==========================================
- Coverage 70.45% 70.43% -0.02%
==========================================
Files 220 220
Lines 36593 36576 -17
==========================================
- Hits 25780 25762 -18
- Misses 9287 9288 +1
Partials 1526 1526 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
The failure seems legit 🤔🧐 |
|
this exposed 2 issues OIDC Backend is not being reconciled in The Backend the route is pointing to is can you address these in this PR @mathetake ? Or I can pick this one up |
|
yeah i would appreciate it if you could pick it up... |
|
sure will do |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
|
cc @zirain can you help with this |
|
ok, I will pick this up. |
|
PR was taken forward and addressed with #6506 |
Previously, backends are appended twice due to the overlapping functionality between processBackends and processBackendRefs functions. This removes the former as we don't need anymore.