Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for NewServiceDiscovery (0.3 sec)

  1. pilot/pkg/serviceregistry/aggregate/controller_test.go

    			ClusterID:           "cluster1",
    			DiscoveryController: memory.NewServiceDiscovery(),
    		},
    		{
    			ProviderID:          "registry2",
    			ClusterID:           "cluster2",
    			DiscoveryController: memory.NewServiceDiscovery(),
    		},
    		{
    			ProviderID:          provider.Kubernetes,
    			ClusterID:           "cluster3",
    			DiscoveryController: memory.NewServiceDiscovery(),
    		},
    	}
    	ctrl := NewController(Options{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/envoyfilter/fuzz_test.go

    		proxy := fuzz.Struct[*model.Proxy](fg)
    		mesh := fuzz.Struct[*meshconfig.MeshConfig](fg)
    		c := fuzz.Struct[*cluster.Cluster](fg)
    
    		serviceDiscovery := memory.NewServiceDiscovery()
    		env := newTestEnvironment(serviceDiscovery, mesh, buildEnvoyFilterConfigStore(patches))
    		push := model.NewPushContext()
    		push.InitContext(env, nil, nil)
    		efw := push.EnvoyFilters(proxy)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/envoyfilter/extension_configuration_patch_test.go

    		{
    			name:                "only add extension config",
    			requestedNames:      []string{"merge-extension-config"},
    			wantExtensionConfig: []*core.TypedExtensionConfig{},
    		},
    	}
    
    	serviceDiscovery := memory.NewServiceDiscovery()
    	env := newTestEnvironment(serviceDiscovery, testMesh, buildEnvoyFilterConfigStore(configPatches))
    	push := model.NewPushContext()
    	push.InitContext(env, nil, nil)
    
    	for _, c := range testCases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/memory/discovery.go

    	mutex sync.Mutex
    }
    
    var (
    	_ model.Controller       = &ServiceDiscovery{}
    	_ model.ServiceDiscovery = &ServiceDiscovery{}
    )
    
    // NewServiceDiscovery builds an in-memory ServiceDiscovery
    func NewServiceDiscovery(services ...*model.Service) *ServiceDiscovery {
    	svcs := map[host.Name]*model.Service{}
    	for _, svc := range services {
    		svcs[svc.Hostname] = svc
    	}
    	return &ServiceDiscovery{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    			}
    		})
    	}
    }
    
    func buildEnvForClustersWithDistribute(distribute []*networking.LocalityLoadBalancerSetting_Distribute) *model.Environment {
    	serviceDiscovery := memregistry.NewServiceDiscovery(&model.Service{
    		Hostname:       "test.example.org",
    		DefaultAddress: "1.1.1.1",
    		Ports: model.PortList{
    			&model.Port{
    				Name:     "default",
    				Port:     8080,
    				Protocol: protocol.HTTP,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/envoyfilter/rc_patch_test.go

    							},
    						},
    					},
    					{
    						Name: "route4.0",
    					},
    				},
    			},
    			{
    				Name: "new-vhost",
    			},
    		},
    	}
    
    	serviceDiscovery := memory.NewServiceDiscovery()
    	env := newTestEnvironment(serviceDiscovery, testMesh, buildEnvoyFilterConfigStore(configPatches))
    	push := model.NewPushContext()
    	push.InitContext(env, nil, nil)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  7. pilot/pkg/model/context_test.go

    			},
    		},
    		{
    			Service: &model.Service{
    				CreationTime: tnow,
    				Hostname:     host.Name("test2.com"),
    			},
    		},
    	}
    
    	serviceDiscovery := memory.NewServiceDiscovery()
    	serviceDiscovery.WantGetProxyServiceTargets = instances
    
    	env := &model.Environment{
    		ServiceDiscovery: serviceDiscovery,
    	}
    
    	proxy := &model.Proxy{}
    	proxy.SetServiceTargets(env)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 23:51:52 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. pilot/pkg/xds/eds_sh_test.go

    	clusterID := cluster.ID(fmt.Sprintf("cluster%d", networkNum))
    	networkID := network.ID(fmt.Sprintf("network%d", networkNum))
    	memRegistry := memory.NewServiceDiscovery()
    	memRegistry.XdsUpdater = server.Discovery
    	memRegistry.ClusterID = clusterID
    
    	reg := serviceregistry.Simple{
    		ClusterID:           clusterID,
    		ProviderID:          provider.Mock,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/fake.go

    		configController,
    		xdsUpdater,
    		env.Watcher,
    		serviceentry.WithClusterID(opts.ClusterID))
    	// TODO allow passing in registry, for k8s, mem reigstry
    	serviceDiscovery.AddRegistry(se)
    	msd := memregistry.NewServiceDiscovery(opts.Services...)
    	msd.XdsUpdater = xdsUpdater
    	for _, instance := range opts.Instances {
    		msd.AddInstance(instance)
    	}
    	msd.AddGateways(opts.Gateways...)
    	msd.ClusterID = cluster2.ID(provider.Mock)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/envoyfilter/cluster_patch_test.go

    			patchContext: networking.EnvoyFilter_GATEWAY,
    			proxy:        &model.Proxy{Type: model.Router, ConfigNamespace: "not-default"},
    			output:       gatewayOutput,
    		},
    	}
    
    	serviceDiscovery := memory.NewServiceDiscovery()
    	env := newTestEnvironment(serviceDiscovery, testMesh, buildEnvoyFilterConfigStore(configPatches))
    	push := model.NewPushContext()
    	push.InitContext(env, nil, nil)
    	for _, tc := range testCases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 20.7K bytes
    - Viewed (0)
Back to top