Skip to content

docs: fix ClientTrafficPolicy page for targeting all listeners - #8892

Closed
fallard84 wants to merge 1 commit into
envoyproxy:mainfrom
fallard84:patch-1
Closed

docs: fix ClientTrafficPolicy page for targeting all listeners#8892
fallard84 wants to merge 1 commit into
envoyproxy:mainfrom
fallard84:patch-1

Conversation

@fallard84

Copy link
Copy Markdown

What type of PR is this?

docs: fix ClientTrafficPolicy page for targeting all listeners

What this PR does / why we need it: The ClientTrafficPolicy doc incorrectly use targetRefs when targeting all listeners of a gateway. The correct key is targetSelectors.

Which issue(s) this PR fixes:

Fixes #

Release Notes: No

Signed-off-by: Francois Allard <allardtech@gmail.com>
@fallard84
fallard84 requested a review from a team as a code owner April 30, 2026 01:45
@netlify

netlify Bot commented Apr 30, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit dca6d09
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69f2b443eb99cf0008cefe96
😎 Deploy Preview https://deploy-preview-8892--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.

@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: dca6d09ec5

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +123 to 125
targetSelectors:
- kind: Gateway
name: my-gateway # Targets all listeners

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use valid TargetSelector fields in gateway-wide example

Switching this example to targetSelectors while keeping name makes the YAML inconsistent with the TargetSelector schema (which supports kind, group, matchLabels, and matchExpressions, but not name). In practice this can either be rejected by validation or silently ignore name, causing the policy to match all Gateways of that kind in-scope instead of only my-gateway, which is not what the example text claims.

Useful? React with 👍 / 👎.

name: gateway-wide-policy
spec:
targetRefs:
targetSelectors:

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.

this matches the comment - " Policy B: Targets the entire gateway"

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

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!

@github-actions github-actions Bot added the stale label Jun 3, 2026
@github-actions github-actions Bot closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants