- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newAddrTypePortMapKey (0.33 sec)
-
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) -
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)