Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newAddrTypePortMapKey (0.2 sec)

  1. pkg/controller/endpointslicemirroring/utils.go

    	netutils "k8s.io/utils/net"
    )
    
    // addrTypePortMapKey is used to uniquely identify groups of endpoint ports and
    // address types.
    type addrTypePortMapKey string
    
    // newAddrTypePortMapKey generates a PortMapKey from endpoint ports.
    func newAddrTypePortMapKey(endpointPorts []discovery.EndpointPort, addrType discovery.AddressType) addrTypePortMapKey {
    	pmk := fmt.Sprintf("%s-%s", addrType, endpointsliceutil.NewPortMapKey(endpointPorts))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. pkg/controller/endpointslicemirroring/reconciler_helpers.go

    	addrTypes := []discovery.AddressType{discovery.AddressTypeIPv4, discovery.AddressTypeIPv6}
    	multiKey := multiAddrTypePortMapKey{}
    
    	for _, addrType := range addrTypes {
    		multiKey[addrType] = newAddrTypePortMapKey(endpointPorts, addrType)
    		if _, ok := d.endpointsByKey[multiKey[addrType]]; !ok {
    			d.endpointsByKey[multiKey[addrType]] = endpointsliceutil.EndpointSet{}
    		}
    		d.portsByKey[multiKey[addrType]] = endpointPorts
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. pkg/controller/endpointslicemirroring/reconciler.go

    	slicesByKey := map[addrTypePortMapKey][]*discovery.EndpointSlice{}
    	for _, existingSlice := range existingSlices {
    		epKey := newAddrTypePortMapKey(existingSlice.Ports, existingSlice.AddressType)
    		slicesByKey[epKey] = append(slicesByKey[epKey], existingSlice)
    	}
    	return slicesByKey
    }
    
    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