Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AddHTTPService (0.15 sec)

  1. pilot/pkg/xds/delta_test.go

    		assert.Equal(t, sets.New(got...), sets.New(names...).Merge(base))
    	}
    	s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
    	addTestClientEndpoints(s.MemRegistry)
    	s.MemRegistry.AddHTTPService(edsIncSvc, edsIncVip, 8080)
    	s.MemRegistry.SetEndpoints(edsIncSvc, "",
    		newEndpointWithAccount("127.0.0.1", "hello-sa", "v1"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. pilot/pkg/networking/apigen/apigen_test.go

    // backed by an in-memory config and endpoint Store.
    func initDS(t *testing.T) *xds.FakeDiscoveryServer {
    	ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
    	sd := ds.MemRegistry
    	sd.AddHTTPService("fortio1.fortio.svc.cluster.local", "10.10.10.1", 8081)
    	sd.SetEndpoints("fortio1.fortio.svc.cluster.local", "", []*model.IstioEndpoint{
    		{
    			Address:         "127.0.0.1",
    			EndpointPort:    uint32(14056),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/memory/discovery.go

    }
    
    func (sd *ServiceDiscovery) AddWorkload(ip string, labels labels.Instance) {
    	sd.ip2workloadLabels[ip] = labels
    }
    
    // AddHTTPService is a helper to add a service of type http, named 'http-main', with the
    // specified vip and port.
    func (sd *ServiceDiscovery) AddHTTPService(name, vip string, port int) {
    	sd.AddService(&model.Service{
    		Hostname:       host.Name(name),
    		DefaultAddress: vip,
    		Ports: model.PortList{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. pilot/pkg/xds/eds_test.go

    	// Add the test ads clients to list of service instances in order to test the context dependent locality coloring.
    	addTestClientEndpoints(m)
    
    	m.AddHTTPService(edsIncSvc, edsIncVip, 8080)
    	m.SetEndpoints(edsIncSvc, "", newEndpointWithAccount("127.0.0.1", "hello-sa", "v1"))
    	// Let initial updates settle
    	s.EnsureSynced(t)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top