Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RemoveService (0.14 sec)

  1. pilot/pkg/xds/delta_test.go

    	// On remove, just get the removal
    	s.MemRegistry.RemoveService("test-1.default")
    	resp = ads.ExpectResponse()
    	assertResources(resp, "inbound|80||") // currently we always send the inbound stuff. Not ideal, but acceptable
    	assert.Equal(t, resp.RemovedResources, []string{"outbound|80||test-1.default"})
    
    	// Another removal should behave the same
    	s.MemRegistry.RemoveService("eds.test.svc.cluster.local")
    	resp = ads.ExpectResponse()
    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/serviceregistry/memory/discovery.go

    	}
    	sd.handlers.NotifyServiceHandlers(old, svc, event)
    	sd.mutex.Unlock()
    }
    
    // RemoveService removes an in-memory service.
    func (sd *ServiceDiscovery) RemoveService(name host.Name) {
    	sd.mutex.Lock()
    	svc := sd.services[name]
    	delete(sd.services, name)
    
    	// remove old entries
    	for k, v := range sd.ip2instance {
    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

    	addEdsCluster(s, "removeservice.com", "http", "10.0.0.53", 8080)
    	adscConn := s.Connect(nil, nil, watchEds)
    
    	// Validate that endpoints are pushed correctly.
    	testEndpoints("10.0.0.53", "outbound|8080||removeservice.com", adscConn, t)
    
    	s.MemRegistry.RemoveService("removeservice.com")
    
    	if _, ok := s.Discovery.Env.EndpointIndex.ShardsForService("removeservice.com", ""); ok {
    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/xds/ads_test.go

    		for _, name := range names {
    			hostname := host.Name(name)
    			s.MemRegistry.RemoveService(hostname)
    			configsUpdated.Insert(model.ConfigKey{
    				Kind:      kind.ServiceEntry,
    				Name:      string(hostname),
    				Namespace: ns,
    			})
    		}
    
    		s.Discovery.ConfigUpdate(&model.PushRequest{Full: true, ConfigsUpdated: configsUpdated})
    	}
    	removeService := func(ns string, indexes ...int) {
    		var names []string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/aggregate/controller_test.go

    			t.Fatalf("Service %s ClusterVIPs actual %v, expected %v", svc.Hostname,
    				svc.ClusterVIPs.Addresses, ClusterVIPs[svc.Hostname])
    		}
    	}
    
    	registry2.RemoveService(mock.HelloService.Hostname)
    	// List Services from aggregate controller
    	services = aggregateCtl.Services()
    	// Now verify ClusterVIPs for each service
    	ClusterVIPs = map[host.Name]map[cluster.ID][]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top