Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConvertToEnvoyMatches (0.22 sec)

  1. pilot/pkg/networking/util/util.go

    	for _, s := range in {
    		res = append(res, &matcher.StringMatcher{
    			MatchPattern: &matcher.StringMatcher_Prefix{Prefix: s},
    		})
    	}
    	return res
    }
    
    func ConvertToEnvoyMatches(in []*networking.StringMatch) []*matcher.StringMatcher {
    	res := make([]*matcher.StringMatcher, 0, len(in))
    
    	for _, im := range in {
    		if em := ConvertToEnvoyMatch(im); em != nil {
    			res = append(res, em)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route.go

    		out.ForwardNotMatchingPreflights = forwardNotMatchingPreflights(in)
    	}
    
    	// nolint: staticcheck
    	if in.AllowOrigins != nil {
    		out.AllowOriginStringMatch = util.ConvertToEnvoyMatches(in.AllowOrigins)
    	} else if in.AllowOrigin != nil {
    		out.AllowOriginStringMatch = util.StringToExactMatch(in.AllowOrigin)
    	}
    
    	out.FilterEnabled = &core.RuntimeFractionalPercent{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
Back to top