Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: adds cel validation on requiring at least one targetRefs #114

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented Jan 16, 2025

Previously targetRefs can be empty. However, in reality,
such AIGatewayRoute is useless while making it necessary
for controller to handle the edge case. This sets the CEL
validation rule to require at least one TargeRefs to exist.

@mathetake mathetake changed the title api: adds cel validation on requiring more than one targetRefs api: adds cel validation on requiring at least one targetRefs Jan 16, 2025
@mathetake mathetake marked this pull request as ready for review January 16, 2025 23:37
@mathetake mathetake requested a review from a team as a code owner January 16, 2025 23:37
@mathetake mathetake requested a review from yuzisun January 16, 2025 23:38
@mathetake mathetake merged commit a1d118b into main Jan 17, 2025
9 checks passed
@mathetake mathetake deleted the minitems1 branch January 17, 2025 00:41
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.

2 participants