Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateHTTPRoute (0.14 sec)

  1. 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)
  2. 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)
Back to top