Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for EnvoyFilter_LISTENER (0.25 sec)

  1. pkg/config/validation/envoyfilter/envoyfilter_test.go

    				{
    					ApplyTo: networking.EnvoyFilter_LISTENER,
    					Patch:   nil,
    				},
    			},
    		}, error: "Envoy filter: missing patch"},
    		{name: "invalid patch operation", in: &networking.EnvoyFilter{
    			ConfigPatches: []*networking.EnvoyFilter_EnvoyConfigObjectPatch{
    				{
    					ApplyTo: networking.EnvoyFilter_LISTENER,
    					Patch:   &networking.EnvoyFilter_Patch{},
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listener_builder_test.go

    			Match: &networking.EnvoyFilter_EnvoyConfigObjectMatch{
    				Context: networking.EnvoyFilter_GATEWAY,
    			},
    			Patch: &networking.EnvoyFilter_Patch{
    				Operation: networking.EnvoyFilter_Patch_ADD,
    				Value:     buildPatchStruct(`{"name":"new-gateway-listener"}`),
    			},
    		},
    
    		{
    			ApplyTo: networking.EnvoyFilter_LISTENER,
    			Match: &networking.EnvoyFilter_EnvoyConfigObjectMatch{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. pkg/config/xds/xds.go

    	if value == nil {
    		// for remove ops
    		return nil, nil
    	}
    	var obj proto.Message
    	switch applyTo {
    	case networking.EnvoyFilter_CLUSTER:
    		obj = &cluster.Cluster{}
    	case networking.EnvoyFilter_LISTENER:
    		obj = &listener.Listener{}
    	case networking.EnvoyFilter_ROUTE_CONFIGURATION:
    		obj = &route.RouteConfiguration{}
    	case networking.EnvoyFilter_FILTER_CHAIN:
    		obj = &listener.FilterChain{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. pkg/config/validation/envoyfilter/envoyfilter.go

    				continue
    			}
    		}
    		// ensure that applyTo, match and patch all line up
    		switch cp.ApplyTo {
    		case networking.EnvoyFilter_LISTENER,
    			networking.EnvoyFilter_FILTER_CHAIN,
    			networking.EnvoyFilter_NETWORK_FILTER,
    			networking.EnvoyFilter_HTTP_FILTER:
    			if cp.Match != nil && cp.Match.ObjectTypes != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/envoyfilter/listener_patch.go

    			// removed by another op
    			continue
    		}
    		patchListener(patchContext, efw.Patches, lis, &listenersRemoved)
    	}
    	// adds at listener level if enabled
    	if !skipAdds {
    		for _, lp := range efw.Patches[networking.EnvoyFilter_LISTENER] {
    			if lp.Operation == networking.EnvoyFilter_Patch_ADD {
    				// If listener ADD patch does not specify a patch context, only add for sidecar outbound and gateway.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 15:39:29 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    			},
    		},
    	}
    	priorities := []int32{
    		2, 1,
    	}
    
    	configPatches := []*networking.EnvoyFilter_EnvoyConfigObjectPatch{
    		{
    			ApplyTo: networking.EnvoyFilter_LISTENER,
    			Match: &networking.EnvoyFilter_EnvoyConfigObjectMatch{
    				Context: networking.EnvoyFilter_SIDECAR_OUTBOUND,
    				Proxy: &networking.EnvoyFilter_ProxyMatch{
    					Metadata: map[string]string{"foo": "sidecar"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  7. pilot/pkg/model/push_context_test.go

    			}
    			if len(filter.Patches[networking.EnvoyFilter_LISTENER]) != tt.expectedListenerPatches {
    				t.Errorf("Expect %d envoy filter listener patches, but got %d", tt.expectedListenerPatches, len(filter.Patches[networking.EnvoyFilter_LISTENER]))
    			}
    		})
    	}
    }
    
    func TestEnvoyFilterOrder(t *testing.T) {
    	env := &Environment{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
Back to top