Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for XdsUpdater (0.18 sec)

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

    	ClusterAliases map[string]string
    
    	// Metrics for capturing node-based metrics.
    	Metrics model.Metrics
    
    	// XDSUpdater will push changes to the xDS server.
    	XDSUpdater model.XDSUpdater
    
    	// MeshNetworksWatcher observes changes to the mesh networks config.
    	MeshNetworksWatcher mesh.NetworksWatcher
    
    	// MeshWatcher observes changes to the mesh config
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceregistry_test.go

    	delegate := model.NewEndpointIndexUpdater(endpoints)
    	xdsUpdater := xdsfake.NewWithDelegate(delegate)
    	delegate.ConfigUpdateFunc = xdsUpdater.ConfigUpdate
    	meshWatcher := mesh.NewFixedWatcher(&meshconfig.MeshConfig{})
    	kc := kubecontroller.NewController(
    		client,
    		kubecontroller.Options{
    			XDSUpdater:            xdsUpdater,
    			DomainSuffix:          "cluster.local",
    			MeshWatcher:           meshWatcher,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  3. 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)
  4. pilot/pkg/xds/delta_test.go

    	}
    	if len(resp.RemovedResources) != 0 {
    		t.Fatalf("received unexpected removed eds resource %v", resp.RemovedResources)
    	}
    
    	// simulate a svc update
    	s.XdsUpdater.ConfigUpdate(&model.PushRequest{
    		ConfigsUpdated: sets.New(model.ConfigKey{
    			Kind: kind.Address, Name: svcA.ResourceName(), Namespace: svcA.Namespace,
    		}),
    	})
    
    	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)
  5. pilot/pkg/serviceregistry/kube/controller/pod.go

    	endpointsPendingPodUpdate.Record(float64(len(pc.needResync)))
    }
    
    func (pc *PodCache) proxyUpdates(pod *v1.Pod, isPodUpdate bool) {
    	if pc.c != nil {
    		if pc.c.opts.XDSUpdater != nil {
    			ip := pod.Status.PodIP
    			pc.c.opts.XDSUpdater.ProxyUpdate(pc.c.Cluster(), ip)
    		}
    		if isPodUpdate {
    			// Recompute service(s) due to pod label change.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    		// Otherwise we only need to push NDS, but still need to set full but we skip all other xDS except NDS during the push.
    		esc.c.opts.XDSUpdater.ConfigUpdate(&model.PushRequest{
    			Full:           true,
    			ConfigsUpdated: configsUpdated,
    			Reason:         model.NewReasonStats(model.HeadlessEndpointUpdate),
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pilot/pkg/serviceregistry/kube/controller/serviceimportcache.go

    		Full:           true,
    		ConfigsUpdated: sets.New(model.ConfigKey{Kind: kind.ServiceEntry, Name: mcsHost.String(), Namespace: ns}),
    
    		Reason: model.NewReasonStats(model.ServiceUpdate),
    	}
    	ic.opts.XDSUpdater.ConfigUpdate(pushReq)
    }
    
    // GetServiceImportIPs returns the list of ClusterSet IPs for the ServiceImport.
    // Exported for testing only.
    func GetServiceImportIPs(si *unstructured.Unstructured) []string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. 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,
    		DiscoveryController: memRegistry,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top