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

Improve Gateway validation error messages #503

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

pleshakov
Copy link
Contributor

The PR #455 brought NKG-specific validation for HTTPRoutes. The implementation uses https://pkg.go.dev/k8s.io/apimachinery/pkg/util/validation/field to generate validation errors.

This PR makes generated Gateway-related errors consistent with HTTPRoute-related errors by starting using that package above.

Fixes #473

The PR #455
brought NKG-specific validation for HTTPRoutes. The implementation uses
https://pkg.go.dev/k8s.io/apimachinery/pkg/util/validation/field 
to generate validation errors.

This commit makes generated Gateway-related errors consistent with
HTTPRoute-related errors by starting using that package above.

Fixes #473
@pleshakov pleshakov requested a review from a team as a code owner March 23, 2023 19:41
@github-actions github-actions bot added the enhancement New feature or request label Mar 23, 2023
Copy link
Contributor

@kate-osborn kate-osborn left a comment

Choose a reason for hiding this comment

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

🚀

@pleshakov pleshakov merged commit c473aba into main Mar 23, 2023
@pleshakov pleshakov deleted the feature/enhance-gateway-validation branch March 23, 2023 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Make NKG-specific Gateway validation consistent with HTTPRoute
2 participants