Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CopyEndpoints (0.11 sec)

  1. pilot/pkg/model/endpointshards.go

    			return keys[i].Provider < keys[j].Provider
    		})
    	}
    	return keys
    }
    
    // CopyEndpoints takes a snapshot of all endpoints. As input, it takes a map of port name to number, to allow it to group
    // the results by service port number. This is a bit weird, but lets us efficiently construct the format the caller needs.
    func (es *EndpointShards) CopyEndpoints(portMap map[string]int, ports sets.Set[int]) map[int][]*IstioEndpoint {
    	es.RLock()
    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/push_context.go

    			ps.ServiceIndex.instancesByPort[svcKey] = make(map[int][]*IstioEndpoint)
    		}
    		shards, ok := env.EndpointIndex.ShardsForService(string(s.Hostname), s.Attributes.Namespace)
    		if ok {
    			instancesByPort := shards.CopyEndpoints(portMap, ports)
    			// Iterate over the instances and add them to the service index to avoid overiding the existing port instances.
    			for port, instances := range instancesByPort {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
Back to top