- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for NewServiceDiscovery (0.24 sec)
-
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) -
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) -
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) -
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) -
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) -
tests/fuzz/pilot_model_fuzzer.go
} m, err := mesh.ApplyMeshConfigDefaults(configString) if err != nil { return 0 } env := &model.Environment{} store := model.NewFakeStore() env.ConfigStore = store sd := memory.NewServiceDiscovery(services...) sd.WantGetProxyServiceTargets = slices.Map(serviceInstances, model.ServiceInstanceToTarget) env.ServiceDiscovery = sd env.Watcher = mesh.NewFixedWatcher(m)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 18:13:06 UTC 2023 - 4.6K bytes - Viewed (0) -
pilot/pkg/model/network_test.go
} }) meshNetworks := mesh.NewFixedNetworksWatcher(nil) xdsUpdater := xdsfake.NewFakeXDS() env := &model.Environment{NetworksWatcher: meshNetworks, ServiceDiscovery: memory.NewServiceDiscovery()} if err := env.InitNetworksManager(xdsUpdater); err != nil { t.Fatal(err) } var gateways []model.NetworkGateway t.Run("initial resolution", func(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 16 01:18:03 UTC 2023 - 6.9K bytes - Viewed (0) -
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) -
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) -
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)