Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for catchAlls (0.48 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/controller_test.go

    		newFSMap[ftr.fs.Name] = ftr.fs
    		newFTRs[ftr.fs.Name] = ftr
    		if ftr.wellFormed {
    			if ftr.matchesAllNonResourceRequests && fsPrecedes(ftr.fs, catchAlls[false]) {
    				catchAlls[false] = ftr.fs
    			}
    			if ftr.matchesAllResourceRequests && fsPrecedes(ftr.fs, catchAlls[true]) {
    				catchAlls[true] = ftr.fs
    			}
    		}
    		if testDebugLogs {
    			t.Logf("For trial %s, adding wf=%v FlowSchema %s", trial, ftr.wellFormed, fcfmt.Fmt(ftr.fs))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. pilot/pkg/model/listener.go

    	VirtualOutboundListenerName = "virtualOutbound"
    
    	// VirtualOutboundCatchAllTCPFilterChainName is the name of the catch all tcp filter chain
    	VirtualOutboundCatchAllTCPFilterChainName = "virtualOutbound-catchall-tcp"
    
    	// VirtualOutboundBlackholeFilterChainName is the name of the filter chain to blackhole undesired traffic
    	VirtualOutboundBlackholeFilterChainName = "virtualOutbound-blackhole"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 10 17:24:55 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route.go

    		return true
    	}
    
    	catchall := false
    
    	switch m := in.MatchType.(type) {
    	case *networking.StringMatch_Regex:
    		// `*` is NOT a RE2 style regex, it's a metacharacter.
    		// It will be translated as present_match, rather than matching "any string".
    		// see https://github.com/istio/istio/pull/20629
    		catchall = m.Regex == "*"
    	}
    
    	return catchall
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/route/route_internal_test.go

    						},
    					},
    				},
    			},
    			want: false,
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			catchall := IsCatchAllRoute(tt.route)
    			if catchall != tt.want {
    				t.Errorf("Unexpected catchAllMatch want %v, got %v", tt.want, catchall)
    			}
    		})
    	}
    }
    
    func TestTranslateCORSPolicyForwardNotMatchingPreflights(t *testing.T) {
    	node := &model.Proxy{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 11 02:47:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener_waypoint.go

    	}
    
    	out := make([]*route.Route, 0, len(vs.Http))
    
    	catchall := false
    	for _, http := range vs.Http {
    		if len(http.Match) == 0 {
    			if r := lb.translateRoute(virtualService, http, nil, listenPort); r != nil {
    				out = append(out, r)
    			}
    			// This is a catchall route, so we can stop processing the rest of the routes.
    			break
    		}
    		for _, match := range http.Match {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_builder_test.go

    	}
    	listenertest.VerifyListener(t, l, listenertest.ListenerTest{
    		FilterChains: []listenertest.FilterChainTest{
    			{Name: "virtualInbound-blackhole"},
    			{Name: "virtualInbound-catchall-http", Type: listenertest.MTLSHTTP},
    			{Name: "virtualInbound-catchall-http", Type: listenertest.PlainHTTP},
    			{Name: "virtualInbound", Type: listenertest.MTLSTCP},
    			{Name: "virtualInbound", Type: listenertest.PlainTCP},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. istioctl/pkg/authz/testdata/configdump.yaml

                "stat_prefix": "PassthroughCluster",
                "cluster": "PassthroughCluster"
               }
              }
             ],
             "name": "virtualOutbound-catchall-tcp"
            }
           ],
           "use_original_dst": true,
           "traffic_direction": "OUTBOUND"
          },
          "last_updated": "2023-06-20T09:07:41.992Z"
         }
        },
        {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 14:20:23 UTC 2023
    - 206.7K bytes
    - Viewed (1)
  8. pilot/pkg/networking/core/route/route_test.go

    	testCases := []struct {
    		name     string
    		in       []*envoyroute.Route
    		expected []*envoyroute.Route
    	}{
    		{
    			name:     "routes with catchall match",
    			in:       first,
    			expected: wantFirst,
    		},
    		{
    			name:     "routes without catchall match",
    			in:       second,
    			expected: wantSecond,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/sidecar_simulation_test.go

    			},
    			Disabled: simulation.Result{
    				ClusterMatched:     "InboundPassthroughCluster",
    				FilterChainMatched: "virtualInbound-catchall-http",
    			},
    			Permissive: simulation.Result{
    				ClusterMatched:     "InboundPassthroughCluster",
    				FilterChainMatched: "virtualInbound-catchall-http",
    			},
    			Strict: simulation.Result{
    				// Plaintext to strict fails
    				Error: simulation.ErrNoFilterChain,
    			},
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  10. pilot/pkg/model/sidecar.go

    func (sc *SidecarScope) GetEgressListenerForRDS(port int, bind string) *IstioEgressListenerWrapper {
    	if sc == nil {
    		return nil
    	}
    
    	for _, e := range sc.EgressListeners {
    		// We hit a catchall listener. This is the last listener in the list of listeners
    		// return as is
    		if e.IstioListener == nil || e.IstioListener.Port == nil {
    			return e
    		}
    
    		// Check if the ports match
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top