Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SetSidecarScope (0.17 sec)

  1. pilot/pkg/xds/proxy_dependencies_test.go

    				},
    			},
    			{
    				Hostname: "foo",
    				Attributes: model.ServiceAttributes{
    					ExportTo:  sets.New(visibility.Public),
    					Namespace: nsName,
    				},
    			},
    		},
    	})
    	gateway.SetSidecarScope(cg.PushContext())
    
    	// service visibility updated
    	cg = core.NewConfigGenTest(t, core.TestOptions{
    		Services: []*model.Service{
    			{
    				Hostname: svcName,
    				Attributes: model.ServiceAttributes{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  2. pilot/pkg/xds/bench_test.go

    				IPAddresses:     []string{"10.3.3.3"},
    				ID:              "random",
    				ConfigNamespace: "default",
    				Metadata:        &model.NodeMetadata{},
    			}
    			push := s.PushContext()
    			proxy.SetSidecarScope(push)
    			b.ResetTimer()
    			var c model.Resources
    			for n := 0; n < b.N; n++ {
    				watchedResources := []string{}
    				for svc := 0; svc < tt.services; svc++ {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 18:13:40 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/fake.go

    		p.DNSDomain = p.ConfigNamespace + ".svc.cluster.local"
    	}
    	if len(p.IPAddresses) == 0 {
    		p.IPAddresses = []string{"1.1.1.1"}
    	}
    
    	// Initialize data structures
    	pc := f.PushContext()
    	p.SetSidecarScope(pc)
    	p.SetServiceTargets(f.env.ServiceDiscovery)
    	p.SetGatewaysForProxy(pc)
    	p.DiscoverIPMode()
    	return p
    }
    
    func (f *ConfigGenTest) Listeners(p *model.Proxy) []*listener.Listener {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. pilot/pkg/xds/ads.go

    	// It can happen when `processRequest` comes after push context has been updated(s.initPushContext),
    	// but proxy's SidecarScope has been updated(s.computeProxyState -> SetSidecarScope) due to optimizations that skip sidecar scope
    	// computation.
    	if con.proxy.SidecarScope != nil && con.proxy.SidecarScope.Version != request.Push.PushVersion {
    		s.computeProxyState(con.proxy, request)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. pilot/pkg/model/context.go

    func compareVersion(ov, nv int) int {
    	if ov == nv {
    		return 0
    	}
    	if ov < nv {
    		return -1
    	}
    	return 1
    }
    
    var NodeTypes = [...]NodeType{SidecarProxy, Router, Waypoint, Ztunnel}
    
    // SetSidecarScope identifies the sidecar scope object associated with this
    // proxy and updates the proxy Node. This is a convenience hack so that
    // callers can simply call push.Services(node) while the implementation of
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
Back to top