Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for istioEndpoints (0.28 sec)

  1. pilot/pkg/model/endpointshards.go

    	}
    
    	ep.Lock()
    	defer ep.Unlock()
    	newIstioEndpoints := istioEndpoints
    
    	oldIstioEndpoints := ep.Shards[shard]
    	needPush := false
    	if oldIstioEndpoints == nil {
    		// If there are no old endpoints, we should push with incoming endpoints as there is nothing to compare.
    		needPush = true
    	} else {
    		newIstioEndpoints = make([]*IstioEndpoint, 0, len(istioEndpoints))
    		// Check if new Endpoints are ready to be pushed. This check
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. pilot/pkg/model/service.go

    }
    
    // DeepCopy creates a clone of IstioEndpoint.
    func (ep *IstioEndpoint) DeepCopy() *IstioEndpoint {
    	return copyInternal(ep).(*IstioEndpoint)
    }
    
    // ShallowCopy creates a shallow clone of IstioEndpoint.
    func (ep *IstioEndpoint) ShallowCopy() *IstioEndpoint {
    	// nolint: govet
    	cpy := *ep
    	return &cpy
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    	endpointsByServiceAndSlice map[host.Name]map[string][]*model.IstioEndpoint
    }
    
    func newEndpointSliceCache() *endpointSliceCache {
    	out := &endpointSliceCache{
    		endpointsByServiceAndSlice: make(map[host.Name]map[string][]*model.IstioEndpoint),
    	}
    	return out
    }
    
    func (e *endpointSliceCache) Update(hostname host.Name, slice string, endpoints []*model.IstioEndpoint) {
    	e.mu.Lock()
    	defer e.mu.Unlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    		if svcLabels == nil {
    			svcLabels = map[string]string{}
    		}
    		svcLabels[label.SecurityTlsMode.Name] = model.IstioMutualTLSModeLabel
    	}
    	return &model.ServiceInstance{
    		Service: svc,
    		Endpoint: &model.IstioEndpoint{
    			Address:              address,
    			EndpointPort:         uint32(port),
    			ServicePortName:      svcPort.Name,
    			LegacyClusterPortKey: int(svcPort.Number),
    			Labels:               svcLabels,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/controller.go

    	istioEndpoint := wi.Endpoint.ShallowCopy()
    
    	// by default, use the numbered targetPort
    	istioEndpoint.EndpointPort = uint32(targetPort.num)
    
    	if targetPort.name != "" {
    		// This is a named port, find the corresponding port in the port map
    		matchedPort := wi.PortMap[targetPort.name]
    		if matchedPort != 0 {
    			istioEndpoint.EndpointPort = matchedPort
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/conversion.go

    		locality = model.GetLocalityLabel(wle.Labels[model.LocalityLabel])
    	}
    	labels := labelutil.AugmentLabels(wle.Labels, clusterID, locality, "", networkID)
    	return &model.ServiceInstance{
    		Endpoint: &model.IstioEndpoint{
    			Address:         addr,
    			EndpointPort:    instancePort,
    			ServicePortName: servicePort.Name,
    
    			LegacyClusterPortKey: int(servicePort.Number),
    			Network:              network.ID(wle.Network),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/listener_builder_test.go

    	cg := NewConfigGenTest(t, o)
    	// Hack up some instances for each Service
    	for _, s := range o.Services {
    		i := &model.ServiceInstance{
    			Service: s,
    			Endpoint: &model.IstioEndpoint{
    				Address:      "1.1.1.1",
    				EndpointPort: 8080, // service port is 80, target port is 8080
    			},
    			ServicePort: s.Ports[0],
    		}
    		cg.MemRegistry.AddInstance(i)
    	}
    	l := cg.Listeners(cg.SetupProxy(p))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller.go

    		}
    	}
    }
    
    // buildEndpoints builds endpoints for the instance keys.
    func (s *Controller) buildEndpoints(keys map[instancesKey]struct{}) map[instancesKey][]*model.IstioEndpoint {
    	var endpoints map[instancesKey][]*model.IstioEndpoint
    	allInstances := []*model.ServiceInstance{}
    	s.mutex.RLock()
    	for key := range keys {
    		i := s.serviceInstances.getByKey(key)
    		allInstances = append(allInstances, i...)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. pilot/pkg/xds/endpoints/ep_filters_test.go

    //
    // All endpoints are part of service example.ns.svc.cluster.local on port 80 (http).
    func testShards() *model.EndpointIndex {
    	shards := &model.EndpointShards{Shards: map[model.ShardKey][]*model.IstioEndpoint{
    		// network1 has one endpoint in each cluster
    		{Cluster: "cluster1a"}: {
    			{Network: "network1", Address: "10.0.0.1"},
    			{Network: "network1", Address: "foo.bar"}, // endpoint generated from ServiceEntry
    			{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top