Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for edsUpdates (0.23 sec)

  1. pilot/pkg/xds/pushqueue_test.go

    				Kind:      kind.ServiceEntry,
    				Name:      "bar",
    				Namespace: "ns1",
    			},
    		)
    		if !reflect.DeepEqual(model.ConfigsOfKind(info.ConfigsUpdated, kind.ServiceEntry), expectedEds) {
    			t.Errorf("Expected EdsUpdates to be %v, got %v", expectedEds, model.ConfigsOfKind(info.ConfigsUpdated, kind.ServiceEntry))
    		}
    		if info.Full {
    			t.Errorf("Expected full to be false, got true")
    		}
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. pilot/pkg/xds/eds_test.go

    	})
    	t.Run("UDSEndpoints", func(t *testing.T) {
    		testUdsEndpoints(adscConn, t)
    	})
    	t.Run("PushIncremental", func(t *testing.T) {
    		edsUpdateInc(s, adscConn, t)
    	})
    	t.Run("Push", func(t *testing.T) {
    		edsUpdates(s, adscConn, t)
    	})
    	t.Run("MultipleRequest", func(t *testing.T) {
    		multipleRequest(s, false, 20, 5, 25*time.Second, nil, t)
    	})
    	// 5 pushes for 100 clients, using EDS incremental only.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. pilot/pkg/xds/eds.go

    	kind.WasmPlugin,
    	kind.ProxyConfig,
    	kind.DNSName,
    
    	kind.KubernetesGateway,
    	kind.HTTPRoute,
    	kind.TCPRoute,
    	kind.TLSRoute,
    	kind.GRPCRoute,
    )
    
    func edsNeedsPush(updates model.XdsUpdates) bool {
    	// If none set, we will always push
    	if len(updates) == 0 {
    		return true
    	}
    	for config := range updates {
    		if !skippedEdsConfigs.Contains(config.Kind) {
    			return true
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/util/xdsfake/updater.go

    	// EndpointCount, used in matches only
    	EndpointCount int
    }
    
    func (fx *Updater) EDSUpdate(c model.ShardKey, hostname string, ns string, entry []*model.IstioEndpoint) {
    	select {
    	case fx.Events <- Event{Type: "eds", ID: hostname, Endpoints: entry, Namespace: ns}:
    	default:
    	}
    	if fx.Delegate != nil {
    		fx.Delegate.EDSUpdate(c, hostname, ns, entry)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/serviceentry/controller.go

    	s.mutex.RUnlock()
    	s.edsUpdate(allInstances)
    	// HACK to workaround Service syncing after WorkloadEntry: https://github.com/istio/istio/issues/45114
    	s.workloadInstances.ForEach(func(wi *model.WorkloadInstance) {
    		if wi.Kind == model.WorkloadEntryKind {
    			s.NotifyWorkloadInstanceHandlers(wi, model.EventAdd)
    		}
    	})
    }
    
    // edsUpdate triggers an EDS push serially such that we can prevent all instances
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. pkg/adsc/adsc.go

    	// If nil, the defaults will be used.
    	Metadata *pstruct.Struct
    
    	// Updates includes the type of the last update received from the server.
    	Updates     chan string
    	errChan     chan error
    	XDSUpdates  chan *discovery.DiscoveryResponse
    	VersionInfo map[string]string
    
    	// Last received message, by type
    	Received map[string]*discovery.DiscoveryResponse
    
    	mutex sync.RWMutex
    
    	Mesh *v1alpha1.MeshConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 05 22:18:49 UTC 2024
    - 35K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/memory/discovery.go

    		key := fmt.Sprintf("%s:%s", service, port.Name)
    		for _, i := range sd.instancesByPortName[key] {
    			eps = append(eps, i.Endpoint)
    		}
    	}
    	if sd.XdsUpdater != nil {
    		sd.XdsUpdater.EDSUpdate(sd.shardKey(), string(service), svc.Attributes.Namespace, eps)
    	}
    }
    
    // AddEndpoint adds an endpoint to a service.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/serviceexportcache.go

    		// 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)
  9. pkg/adsc/adsc_test.go

    				TypeUrl: request.TypeUrl,
    			}
    		}
    
    		tc := testCase{
    			desc: desc.desc,
    			inAdsc: &ADSC{
    				Received:   make(map[string]*discovery.DiscoveryResponse),
    				Updates:    make(chan string),
    				XDSUpdates: make(chan *discovery.DiscoveryResponse),
    				cfg: &ADSConfig{
    					Config:                   Config{},
    					InitialDiscoveryRequests: desc.initialRequests,
    				},
    				VersionInfo: map[string]string{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  10. pilot/pkg/xds/sds.go

    		configs = append(configs, config.HashCode())
    	}
    	return configs
    }
    
    func (sr SecretResource) Cacheable() bool {
    	return true
    }
    
    func sdsNeedsPush(updates model.XdsUpdates) bool {
    	if len(updates) == 0 {
    		return true
    	}
    	for update := range updates {
    		switch update.Kind {
    		case kind.Secret:
    			return true
    		case kind.ReferenceGrant:
    			return true
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top