Skip to content

fix: set observedGeneration in envoy patch policy#7715

Merged
kkk777-7 merged 2 commits intoenvoyproxy:mainfrom
kkk777-7:fix-epp-status
Dec 13, 2025
Merged

fix: set observedGeneration in envoy patch policy#7715
kkk777-7 merged 2 commits intoenvoyproxy:mainfrom
kkk777-7:fix-epp-status

Conversation

@kkk777-7
Copy link
Copy Markdown
Member

What this PR does / why we need it:
Fixed that observedGeneration is missing from the EnvoyPatchPolicy status condition.
Introduce new field in IR to set observedGeneration.

Which issue(s) this PR fixes:

Fixes #7713

Release Notes: Yes

@kkk777-7 kkk777-7 requested a review from a team as a code owner December 10, 2025 16:09
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.29%. Comparing base (b9123a8) to head (661d494).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7715   +/-   ##
=======================================
  Coverage   72.28%   72.29%           
=======================================
  Files         234      234           
  Lines       34480    34481    +1     
=======================================
+ Hits        24924    24928    +4     
+ Misses       7767     7764    -3     
  Partials     1789     1789           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

message: Patches have been successfully applied.
reason: Programmed
status: "True"
message: A patch operation must specify a path or jsonPath.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The changes in the xDS translate output message are likely due to modifying the processing order in translator_test.go to reflect the translation results in the policy status.

In the current code on the main branch, the test case for errMsg returns early.
https://github.com/envoyproxy/gateway/blob/main/internal/xds/translator/translator_test.go#L183-L191
Therefore, I assume that when the policy message was updated, the changes were not reflected in the test output.

Signed-off-by: kkk777-7 <[email protected]>
@kkk777-7
Copy link
Copy Markdown
Member Author

/retest

Copy link
Copy Markdown
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

@zirain
Copy link
Copy Markdown
Member

zirain commented Dec 12, 2025

/retest

@kkk777-7 kkk777-7 merged commit 1ce65fc into envoyproxy:main Dec 13, 2025
73 of 78 checks passed
millermatt pushed a commit to millermatt/envoy-gateway that referenced this pull request Jan 4, 2026
* 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: Matt Miller <[email protected]>
zirain pushed a commit to zirain/gateway that referenced this pull request Jan 8, 2026
* 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: zirain <[email protected]>
rudrakhp pushed a commit to rudrakhp/gateway that referenced this pull request Jan 8, 2026
* 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]>
zirain 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: zirain <[email protected]>

* fix: add validation for request buffer limit (#7687)

Signed-off-by: kkk777-7 <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: setting externalTrafficPolicy for NodePort service type (#7823)

Signed-off-by: Rudrakh Panigrahi <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix: make port-forward worked for OTel collector on port 19001 (#7860)

Signed-off-by: zirain <[email protected]>

* chore: fix goroutine leak (#7880)

fix goroutine leak

Signed-off-by: Huabing Zhao <[email protected]>
Signed-off-by: zirain <[email protected]>

* fix gen

Signed-off-by: zirain <[email protected]>

* bump envoy to 1.35.8

Signed-off-by: zirain <[email protected]>

---------

Signed-off-by: kkk777-7 <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: Rudrakh Panigrahi <[email protected]>
Signed-off-by: Huabing Zhao <[email protected]>
Co-authored-by: Kota Kimura <[email protected]>
Co-authored-by: Rudrakh Panigrahi <[email protected]>
Co-authored-by: Huabing (Robin) Zhao <[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]>
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.

Set observedGeneration in EnvoyPatchPolicy

3 participants