Skip to content

Conversation

@alexliu541
Copy link
Contributor

Description

When targetRefs are invalid or a combination of valid and invalid in a TrafficPolicy, the error is not reported to status and silently ignored. This PR fixes that problem by validating targetrefs for policies and correctly report accept false in policy CRD status condition field.

Changes

  • Add validation for targetrefs when receive policy event
  • Find and report policy with no valid targetrefs

Change Type

/kind bug_fix

Changelog

Report TrafficPolicy invalid targetrefs in status condition

@github-actions github-actions bot added kind/fix Categorizes issue or PR as related to a bug. release-note labels Oct 23, 2025
@shashankram
Copy link
Contributor

I'll review this. Please hold this PR from merging till I can, thanks

@shashankram shashankram self-assigned this Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/fix Categorizes issue or PR as related to a bug. release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants