Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for pushContext (0.24 sec)

  1. pilot/pkg/model/push_context.go

    		DuplicatedClusters,
    		ProxyStatusClusterNoInstances,
    		DuplicatedDomains,
    		DuplicatedSubsets,
    	}
    )
    
    // NewPushContext creates a new PushContext structure to track push status.
    func NewPushContext() *PushContext {
    	return &PushContext{
    		ServiceIndex:            newServiceIndex(),
    		virtualServiceIndex:     newVirtualServiceIndex(),
    		destinationRuleIndex:    newDestinationRuleIndex(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  2. pilot/pkg/model/push_context_test.go

    func TestIsServiceVisible(t *testing.T) {
    	targetNamespace := "foo"
    	cases := []struct {
    		name        string
    		pushContext *PushContext
    		service     *Service
    		expect      bool
    	}{
    		{
    			name: "service whose namespace is foo has no exportTo map with global private",
    			pushContext: &PushContext{
    				exportToDefaults: exportToDefaults{
    					service: sets.New(visibility.Private),
    				},
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/route/route_test.go

    											},
    										},
    									},
    								},
    							},
    						},
    					},
    				},
    			},
    		})
    
    		proxy := node(cg)
    		hashByDestination := route.GetConsistentHashForVirtualService(cg.PushContext(), proxy, virtualServicePlain)
    		routes, err := route.BuildHTTPRoutesForVirtualService(proxy, virtualServicePlain, serviceRegistry,
    			hashByDestination, 8080, gatewayNames, route.RouteOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/listener_test.go

    			proxy := cg.SetupProxy(nil)
    			proxy.Metadata.InboundListenerExactBalance = true
    			proxy.Metadata.OutboundListenerExactBalance = true
    
    			listeners := NewListenerBuilder(proxy, cg.env.PushContext()).buildSidecarOutboundListeners(proxy, cg.env.PushContext())
    			listenersToCheck := make([]string, 0)
    			for _, l := range listeners {
    				if l.Address.GetSocketAddress().GetPortValue() == 9999 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener.go

    type gatewayListenerOpts struct {
    	push  *model.PushContext
    	proxy *model.Proxy
    
    	bindToPort bool
    	bind       string
    	extraBind  []string
    
    	port              int
    	filterChainOpts   []*filterChainOpts
    	needPROXYProtocol bool
    }
    
    // outboundListenerOpts are the options to build an outbound listener
    type outboundListenerOpts struct {
    	push  *model.PushContext
    	proxy *model.Proxy
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/route/route.go

    func GetConsistentHashForVirtualService(push *model.PushContext, node *model.Proxy, virtualService config.Config) DestinationHashMap {
    	hashByDestination, _ := hashForVirtualService(push, node, virtualService)
    	return hashByDestination
    }
    
    // hashForHTTPDestination return the ConsistentHashLB and the DestinationRule associated with HTTP route destination.
    func hashForHTTPDestination(push *model.PushContext, node *model.Proxy,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    		ServiceDiscovery: serviceDiscovery,
    		ConfigStore:      configStore,
    		Watcher:          mesh.NewFixedWatcher(meshConfig),
    	}
    
    	pushContext := model.NewPushContext()
    	e.Init()
    	_ = pushContext.InitContext(e, nil, nil)
    	e.SetPushContext(pushContext)
    	return e
    }
    
    func TestApplyListenerPatches(t *testing.T) {
    	configPatchesPriorities := []*networking.EnvoyFilter_EnvoyConfigObjectPatch{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/httproute_test.go

    				Configs:  tt.config,
    			})
    
    			vHostCache := make(map[int][]*route.VirtualHost)
    			resource, _ := cg.ConfigGen.buildSidecarOutboundHTTPRouteConfig(
    				cg.SetupProxy(nil), &model.PushRequest{Push: cg.PushContext()}, "80", vHostCache, nil, nil)
    			routeCfg := &route.RouteConfiguration{}
    			resource.Resource.UnmarshalTo(routeCfg)
    			xdstest.ValidateRouteConfiguration(t, routeCfg)
    
    			got := map[string][]string{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  9. pilot/pkg/security/authn/policy_applier_test.go

    						},
    						Forward:           false,
    						PayloadInMetadata: "https://secret.foo.com",
    					},
    				},
    				BypassCorsPreflight: true,
    			},
    		},
    	}
    
    	push := &model.PushContext{}
    	push.JwtKeyResolver = model.NewJwksResolver(
    		model.JwtPubKeyEvictionDuration, model.JwtPubKeyRefreshInterval,
    		model.JwtPubKeyRefreshIntervalOnFailure, 10*time.Millisecond)
    	defer push.JwtKeyResolver.Close()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 60.2K bytes
    - Viewed (0)
  10. pilot/pkg/model/telemetry_logging_test.go

    				},
    			},
    		},
    		Formatters: []*core.TypedExtensionConfig{
    			celFormatter,
    			metadataFormatter,
    			reqWithoutQueryFormatter,
    		},
    	}
    
    	clusterLookupFn = func(push *PushContext, service string, port int) (hostname string, cluster string, err error) {
    		return grpcBackendAuthority, grpcBackendClusterName, nil
    	}
    
    	stdout := &fileaccesslog.FileAccessLog{
    		Path: DevStdout,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
Back to top