fix: nil pointer error when applying BackendTrafficPolicy to HTTPRoute with no backendRefs#7765
Merged
arkodg merged 3 commits intoenvoyproxy:mainfrom Dec 19, 2025
Merged
Conversation
Signed-off-by: kkk777-7 <[email protected]>
Signed-off-by: kkk777-7 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7765 +/- ##
==========================================
+ Coverage 72.38% 72.41% +0.03%
==========================================
Files 234 234
Lines 34566 34566
==========================================
+ Hits 25020 25031 +11
+ Misses 7757 7743 -14
- Partials 1789 1792 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: kkk777-7 <[email protected]>
zirain
approved these changes
Dec 18, 2025
arkodg
approved these changes
Dec 19, 2025
millermatt
pushed a commit
to millermatt/envoy-gateway
that referenced
this pull request
Jan 4, 2026
…e with no backendRefs (envoyproxy#7765) * fix: checking route section name in backend traffic policy Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Matt Miller <[email protected]>
Member
|
v1.5 didn't support BackendTrafficPolicy target with section name. |
rudrakhp
pushed a commit
to rudrakhp/gateway
that referenced
this pull request
Jan 8, 2026
…e with no backendRefs (envoyproxy#7765) * fix: checking route section name in backend traffic policy Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]>
rudrakhp
added a commit
that referenced
this pull request
Jan 9, 2026
* fix: set observedGeneration in envoy patch policy (#7715) * fix: set observedGeneration in envoy patch policy Signed-off-by: kkk777-7 <[email protected]> * add release note Signed-off-by: kkk777-7 <[email protected]> --------- Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: add validation for request buffer limit (#7687) Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: nil pointer error when applying BackendTrafficPolicy to HTTPRoute with no backendRefs (#7765) * fix: checking route section name in backend traffic policy Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: setting externalTrafficPolicy for NodePort service type (#7823) Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: add indexing and processing for CRL references in ClientTrafficPolicies (#7829) Signed-off-by: Rudrakh Panigrahi <[email protected]> * feat: change the benchmark report to json format (#6818) * benchmark json output Signed-off-by: zirain <[email protected]> * fix Signed-off-by: zirain <[email protected]> * fix Signed-off-by: zirain <[email protected]> * fix lint Signed-off-by: zirain <[email protected]> * fix Signed-off-by: zirain <[email protected]> * revert Signed-off-by: zirain <[email protected]> * fix seconds Signed-off-by: zirain <[email protected]> --------- Signed-off-by: zirain <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * bechmark: scale up RPS to test data plane CPU performance (#7810) * Scale up RPS to test data plane CPU performance Signed-off-by: Huabing Zhao <[email protected]> * set duration to 120s Signed-off-by: Huabing Zhao <[email protected]> * discard invalid samples Signed-off-by: Huabing Zhao <[email protected]> * change scrape interval to 10s Signed-off-by: Huabing Zhao <[email protected]> * remove invalid cpu sampling data Signed-off-by: Huabing Zhao <[email protected]> * reduce duration to 60 Signed-off-by: Huabing Zhao <[email protected]> * fix benchmark end time Signed-off-by: Huabing Zhao <[email protected]> * fix data plane benchmark start time Signed-off-by: Huabing Zhao <[email protected]> * increase test time to get more samples Signed-off-by: Huabing Zhao <[email protected]> * adjust rps for each scale Signed-off-by: Huabing Zhao <[email protected]> * address comments Signed-off-by: Huabing(Robin) Zhao <[email protected]> --------- Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Huabing(Robin) Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix: make port-forward worked for OTel collector on port 19001 (#7860) Signed-off-by: zirain <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * chore: fix goroutine leak (#7880) fix goroutine leak Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> * fix gen-check Signed-off-by: Rudrakh Panigrahi <[email protected]> --------- Signed-off-by: kkk777-7 <[email protected]> Signed-off-by: Rudrakh Panigrahi <[email protected]> Signed-off-by: zirain <[email protected]> Signed-off-by: Huabing Zhao <[email protected]> Signed-off-by: Huabing(Robin) Zhao <[email protected]> Co-authored-by: Kota Kimura <[email protected]> Co-authored-by: zirain <[email protected]> Co-authored-by: Huabing (Robin) Zhao <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Fixed a nil pointer error when applying BackendTrafficPolicy to HTTPRoutes with no backendRefs.
This is caused by using IR Destination Metadata to compare section name.
We can use Route Metadata, and Route metadata is not nil when the IR has been generated, so use that instead.
(currently use in SecurityPolicy and EnvoyExtensionPolicy)
Which issue(s) this PR fixes:
Fixes #7752
Release Notes: Yes