Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AddInstance (0.13 sec)

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

    		mock.HelloService.DeepCopy(),
    		mock.ExtHTTPService.DeepCopy(),
    	)
    	for _, port := range mock.HelloService.Ports {
    		discovery1.AddInstance(mock.MakeServiceInstance(mock.HelloService, port, 0, model.Locality{}))
    		discovery1.AddInstance(mock.MakeServiceInstance(mock.HelloService, port, 1, model.Locality{}))
    	}
    
    	discovery2 := memory.NewServiceDiscovery(mock.ReplicatedFooServiceV2.DeepCopy(),
    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/serviceregistry/memory/discovery.go

    	}
    	sd.handlers.NotifyServiceHandlers(nil, svc, model.EventDelete)
    	sd.mutex.Unlock()
    }
    
    // AddInstance adds an in-memory instance and notifies the XDS updater
    func (sd *ServiceDiscovery) AddInstance(instance *model.ServiceInstance) {
    	sd.mutex.Lock()
    	defer sd.mutex.Unlock()
    	service := instance.Service.Hostname
    	svc := sd.services[service]
    	if svc == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. pilot/pkg/xds/eds_test.go

    		ServicePort: svc.Ports[0],
    		Endpoint: &model.IstioEndpoint{
    			Address:        "1.2.3.4",
    			ServiceAccount: "spiffe://td1/ns/def/sa/def",
    			HealthStatus:   model.UnHealthy,
    		},
    	}
    	s.MemRegistry.AddInstance(i)
    	if _, err := ads.Wait(time.Second*10, v3.EndpointType); err != nil {
    		t.Fatal(err)
    	}
    	transport := &tls.UpstreamTlsContext{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/fake.go

    	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)
    	memserviceRegistry := serviceregistry.Simple{
    		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)
  5. pilot/pkg/networking/core/listener_builder_test.go

    			Service: s,
    			Endpoint: &model.IstioEndpoint{
    				Address:      "1.1.1.1",
    				EndpointPort: 8080, // service port is 80, target port is 8080
    			},
    			ServicePort: s.Ports[0],
    		}
    		cg.MemRegistry.AddInstance(i)
    	}
    	l := cg.Listeners(cg.SetupProxy(p))
    	xdstest.ValidateListeners(t, l)
    	return l
    }
    
    func TestVirtualInboundListenerBuilder(t *testing.T) {
    	tests := []struct {
    		useExactBalance bool
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_test.go

    				Service: s,
    				Endpoint: &model.IstioEndpoint{
    					Address:      "1.1.1.1",
    					EndpointPort: uint32(s.Ports[0].Port),
    				},
    				ServicePort: s.Ports[0],
    			}
    			cg.MemRegistry.AddInstance(i)
    		}
    		listeners := cg.Listeners(cg.SetupProxy(p))
    		xdstest.ValidateListeners(t, listeners)
    		l := xdstest.ExtractListener(model.VirtualInboundListenerName, listeners)
    		httpFilters := []string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
Back to top