File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 34
34
// For additional details of the HTTPRoute spec, refer to:
35
35
// https://gateway-api.sigs.k8s.io/spec/#gateway.networking.k8s.io/v1alpha2.HTTPRoute
36
36
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" ))
44
38
}
45
39
46
40
// validateHTTPRouteUniqueFilters validates whether each core and extended filter
You can’t perform that action at this time.
0 commit comments