Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for istioEndpoints (0.34 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/xds/eds.go

    func (s *DiscoveryServer) EDSUpdate(shard model.ShardKey, serviceName string, namespace string,
    	istioEndpoints []*model.IstioEndpoint,
    ) {
    	inboundEDSUpdates.Increment()
    	// Update the endpoint shards
    	pushType := s.Env.EndpointIndex.UpdateServiceEndpoints(shard, serviceName, namespace, istioEndpoints)
    	if pushType == model.IncrementalPush || pushType == model.FullPush {
    		// Trigger a push
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. pilot/pkg/xds/endpoints/endpoint_builder.go

    	return configs
    }
    
    type LocalityEndpoints struct {
    	istioEndpoints []*model.IstioEndpoint
    	// The protobuf message which contains LbEndpoint slice.
    	llbEndpoints endpoint.LocalityLbEndpoints
    }
    
    func (e *LocalityEndpoints) append(ep *model.IstioEndpoint, le *endpoint.LbEndpoint) {
    	e.istioEndpoints = append(e.istioEndpoints, ep)
    	e.llbEndpoints.LbEndpoints = append(e.llbEndpoints.LbEndpoints, le)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    		{
    			IstioEndpoints: []*model.IstioEndpoint{
    				{
    					Labels: map[string]string{
    						"topology.istio.io/network": "n1",
    						"topology.istio.io/cluster": "c1",
    					},
    					Address: "1.1.1.1",
    				},
    			},
    			LocalityLbEndpoints: cluster.LoadAssignment.Endpoints[0],
    		},
    		{
    			IstioEndpoints: []*model.IstioEndpoint{
    				{
    					Labels: map[string]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  5. pilot/pkg/xds/eds_sh_test.go

    				Protocol: protocol.HTTP,
    			},
    		},
    		Attributes: model.ServiceAttributes{Namespace: "default"},
    	})
    	istioEndpoints := make([]*model.IstioEndpoint, numOfEndpoints)
    	for i := 0; i < numOfEndpoints; i++ {
    		addr := fmt.Sprintf("10.%d.0.%d", networkNum, i+1)
    		istioEndpoints[i] = &model.IstioEndpoint{
    			Address:         addr,
    			EndpointPort:    2080,
    			ServicePortName: "http-main",
    			Network:         networkID,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    			}
    		}
    	}
    }
    
    // WrappedLocalityLbEndpoints contain an envoy LocalityLbEndpoints
    // and the original IstioEndpoints used to generate it.
    // It is used to do failover priority label match with proxy labels.
    type WrappedLocalityLbEndpoints struct {
    	IstioEndpoints      []*model.IstioEndpoint
    	LocalityLbEndpoints *endpoint.LocalityLbEndpoints
    }
    
    // set loadbalancing priority by failover priority label.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pilot/pkg/xds/eds_test.go

    		}
    	})
    }
    
    // newEndpointWithAccount is a helper for IstioEndpoint creation. Creates endpoints with
    // port name "http", with the given IP, service account and a 'version' label.
    // nolint: unparam
    func newEndpointWithAccount(ip, account, version string) []*model.IstioEndpoint {
    	return []*model.IstioEndpoint{
    		{
    			Address:         ip,
    			ServicePortName: "http-main",
    			EndpointPort:    80,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  10. pkg/dns/server/name_table_test.go

    			}
    		})
    	}
    }
    
    func makeInstances(proxy *model.Proxy, svc *model.Service, servicePort int, targetPort int) []*model.IstioEndpoint {
    	ret := make([]*model.IstioEndpoint, 0)
    	for _, p := range svc.Ports {
    		if p.Port != servicePort {
    			continue
    		}
    		ret = append(ret, &model.IstioEndpoint{
    			Address:         proxy.IPAddresses[0],
    			ServicePortName: p.Name,
    			EndpointPort:    uint32(targetPort),
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 04:26:03 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top