Skip to content

fix: support ExtensionServerPolicy targeting GatewayClass - #10062

Merged
zirain merged 10 commits into
envoyproxy:mainfrom
zirain:fix-10060
Oct 23, 2026
Merged

zirain merged 10 commits into
envoyproxy:mainfrom
zirain:fix-10060

Conversation

@zirain

@zirain zirain commented Sep 21, 2026

Copy link
Copy Markdown
Member

fixes: #10060

ExtensionServerPolicy silently dropped any policy with targetRef.kind: GatewayClass — no status, no attachment, no error — in every mode, not just under mergeGateways. This adds proper GatewayClass targeting support, mirroring the pattern already used by EnvoyPatchPolicy.

@zirain
zirain requested a review from a team as a code owner September 21, 2026 04:56
@netlify

netlify Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 52e5aeb
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/6adaae81c0861abd0d3ff8a9
😎 Deploy Preview https://deploy-preview-10062--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@zirain
zirain marked this pull request as draft September 21, 2026 04:56
@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.87640% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 81.89%. Comparing base (f568713) to head (52e5aeb).

Files with missing lines Patch % Lines
internal/gatewayapi/extensionserverpolicy.go 98.76% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10062      +/-   ##
==========================================
+ Coverage   81.82%   81.89%   +0.06%     
==========================================
  Files         268      268              
  Lines       42376    42452      +76     
==========================================
+ Hits        34676    34766      +90     
+ Misses       7699     7685      -14     
  Partials        1        1              

☔ View full report in Codecov by Harness.
📢 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.

@zirain
zirain marked this pull request as ready for review September 21, 2026 11:32
@zirain zirain added this to the v1.10.0-rc.1 Release milestone Sep 21, 2026

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.

this's reordered because of the changes of isRouteRule and isRoute

@zirain

zirain commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

@codex review

@zirain

zirain commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T00:53:05.392586Z 52e5aeb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9d6099f80d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@zirain

zirain commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 4f455f4670

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 35c5e9705b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread internal/gatewayapi/helpers.go Resolved
@zhaohuabing
zhaohuabing requested a review from guydc October 14, 2026 11:22
@zhaohuabing
zhaohuabing requested a review from a team October 14, 2026 11:22
Signed-off-by: zirain <[email protected]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4a68a33803

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@kkk777-7

Copy link
Copy Markdown
Member

LGTM, thanks!

@vvoytovych

Copy link
Copy Markdown

Thanks, this also fixes the listener attachment in #10097. Under mergeGateways, a policy that targets a Gateway now attaches only to that Gateway's listeners (code).

One case from #10099's tests is not tested here. Two merged Gateways have a listener of the same name, and a policy targets one of them by sectionName. I'll add that test in a small follow-up PR after this merges.

@guydc guydc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@zirain
zirain merged commit 7c22fe1 into envoyproxy:main Oct 23, 2026
76 of 78 checks passed
@zirain
zirain deleted the fix-10060 branch October 23, 2026 02:40
@Ido-Itz

Ido-Itz commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for the fix!
Is there any chance to have this downported to EG 1.9.x?

@zirain

zirain commented Nov 4, 2026

Copy link
Copy Markdown
Member Author

Thanks for the fix! Is there any chance to have this downported to EG 1.9.x?

this's a gray area(fix an issue with something new), no objection from my side.
let's discuss this with other maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ExtensionServerPolicy: targetRef.kind: GatewayClass is silently ignored, not just under mergeGateways

6 participants