Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for XdsUpdater (0.36 sec)

  1. pilot/pkg/serviceregistry/kube/controller/fake.go

    	DomainSuffix      string
    	XDSUpdater        model.XDSUpdater
    	Stop              chan struct{}
    	SkipRun           bool
    	ConfigCluster     bool
    	SystemNamespace   string
    }
    
    type FakeController struct {
    	*Controller
    	Endpoints *model.EndpointIndex
    }
    
    func NewFakeControllerWithOptions(t test.Failer, opts FakeControllerOptions) (*FakeController, *xdsfake.Updater) {
    	xdsUpdater := opts.XDSUpdater
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. pilot/pkg/model/network_test.go

    			t.Logf("failed shutting down fake dns servers")
    		}
    	})
    
    	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)
  3. pilot/pkg/serviceregistry/util/xdsfake/updater.go

    	"istio.io/istio/pkg/test"
    )
    
    // NewFakeXDS creates a XdsUpdater reporting events via a channel.
    func NewFakeXDS() *Updater {
    	return &Updater{
    		SplitEvents: false,
    		Events:      make(chan Event, 100),
    	}
    }
    
    // NewWithDelegate creates a XdsUpdater reporting events via a channel.
    func NewWithDelegate(delegate model.XDSUpdater) *Updater {
    	return &Updater{
    		Events:   make(chan Event, 100),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/servicecontroller.go

    	args.RegistryOptions.KubeOptions.ClusterID = s.clusterID
    	args.RegistryOptions.KubeOptions.Revision = args.Revision
    	args.RegistryOptions.KubeOptions.Metrics = s.environment
    	args.RegistryOptions.KubeOptions.XDSUpdater = s.XDSServer
    	args.RegistryOptions.KubeOptions.MeshNetworksWatcher = s.environment.NetworksWatcher
    	args.RegistryOptions.KubeOptions.MeshWatcher = s.environment.Watcher
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/serviceexportcache.go

    		// Re-build the endpoints for this service with a new discoverability policy.
    		// Also update any internal caching.
    		endpoints := ec.buildEndpointsForService(svc, true)
    		shard := model.ShardKeyFromRegistry(ec)
    		ec.opts.XDSUpdater.EDSUpdate(shard, svc.Hostname.String(), se.GetNamespace(), endpoints)
    	}
    }
    
    func (ec *serviceExportCacheImpl) EndpointDiscoverabilityPolicy(svc *model.Service) model.EndpointDiscoverabilityPolicy {
    	if svc == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/serviceexportcache_test.go

    	// Wait for the XDS event.
    	ec.waitForXDS(t, false)
    }
    
    func (ec *serviceExportCacheImpl) waitForXDS(t *testing.T, exported bool) {
    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		event := ec.opts.XDSUpdater.(*xdsfake.Updater).WaitOrFail(t, "eds")
    		if len(event.Endpoints) != 1 {
    			return fmt.Errorf("waitForXDS failed: expected 1 endpoint, found %d", len(event.Endpoints))
    		}
    
    		hostName := host.Name(event.ID)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top