Skip to content

Commit 6b1881c

Browse files
committed
chore: updates for PR review comments
1 parent a1ee58e commit 6b1881c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apis/v1alpha2/validation/httproute.go

+1-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ var (
3434
// For additional details of the HTTPRoute spec, refer to:
3535
// https://gateway-api.sigs.k8s.io/spec/#gateway.networking.k8s.io/v1alpha2.HTTPRoute
3636
func ValidateHTTPRoute(route *gatewayv1a2.HTTPRoute) field.ErrorList {
37-
return validateHTTPRouteSpec(&route.Spec, field.NewPath("spec"))
38-
}
39-
40-
// validateHTTPRouteSpec validates that required fields of spec are set according to the
41-
// HTTPRoute specification.
42-
func validateHTTPRouteSpec(spec *gatewayv1a2.HTTPRouteSpec, path *field.Path) field.ErrorList {
43-
return validateHTTPRouteUniqueFilters(spec.Rules, path.Child("rules"))
37+
return validateHTTPRouteUniqueFilters(route.Spec.Rules, field.NewPath("spec").Child("rules"))
4438
}
4539

4640
// validateHTTPRouteUniqueFilters validates whether each core and extended filter

0 commit comments

Comments
 (0)