Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for portsByKey (0.18 sec)

  1. pkg/controller/endpointslicemirroring/reconciler_helpers.go

    func newDesiredCalc() *desiredCalc {
    	return &desiredCalc{
    		portsByKey:          map[addrTypePortMapKey][]discovery.EndpointPort{},
    		endpointsByKey:      map[addrTypePortMapKey]endpointsliceutil.EndpointSet{},
    		numDesiredEndpoints: 0,
    	}
    }
    
    // desiredCalc helps calculate desired endpoints and ports.
    type desiredCalc struct {
    	portsByKey          map[addrTypePortMapKey][]discovery.EndpointPort
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/reconciler.go

    	for portKey, desiredEndpoints := range d.endpointsByKey {
    		numEndpoints := len(desiredEndpoints)
    		pmSlices, pmTotals := r.reconcileByPortMapping(
    			endpoints, existingSlicesByKey[portKey], desiredEndpoints, d.portsByKey[portKey], portKey.addressType())
    
    		slices.append(pmSlices)
    		totals.add(pmTotals)
    
    		epMetrics.Set(endpointsliceutil.PortMapKey(portKey), metrics.EfficiencyInfo{
    			Endpoints: numEndpoints,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 13.1K bytes
    - Viewed (0)
Back to top