- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for validateHTTPRoute (0.2 sec)
-
pkg/config/validation/virtualservice_test.go
MatchType: &networking.StringMatch_Prefix{Prefix: ""}, }, }, }}, }, valid: false}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { if err := validateHTTPRoute(tc.route, false, false); (err.Err == nil) != tc.valid { t.Fatalf("got valid=%v but wanted valid=%v: %v", err.Err == nil, tc.valid, err) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 15:33:55 UTC 2024 - 19.9K bytes - Viewed (0) -
pkg/config/validation/virtualservice.go
if isDelegate { return DelegateRoute } // root vs's http route if http.Delegate != nil { return RootRoute } return IndependentRoute } func validateHTTPRoute(http *networking.HTTPRoute, delegate, gatewaySemantics bool) (errs Validation) { routeType := getHTTPRouteType(http, delegate) // check for conflicts errs = WrapError(validateHTTPRouteConflict(http, routeType))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0) -
pkg/config/validation/validation.go
for _, httpRoute := range virtualService.Http { if httpRoute == nil { errs = AppendValidation(errs, errors.New("http route may not be null")) continue } errs = AppendValidation(errs, validateHTTPRoute(httpRoute, len(virtualService.Hosts) == 0, gatewaySemantics)) } for _, tlsRoute := range virtualService.Tls { errs = AppendValidation(errs, validateTLSRoute(tlsRoute, virtualService, gatewaySemantics)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
pkg/config/validation/validation_test.go
Destination: &networking.Destination{Host: "foo.baz"}, }}, }, valid: false}, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { if err := validateHTTPRoute(tc.route, false, false); (err.Err == nil) != tc.valid { t.Fatalf("got valid=%v but wanted valid=%v: %v", err.Err == nil, tc.valid, err) } }) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 03:11:45 UTC 2024 - 196K bytes - Viewed (0)