type addrTypePortMapKey … // newAddrTypePortMapKey generates a PortMapKey from endpoint ports. func newAddrTypePortMapKey(endpointPorts []discovery.EndpointPort, addrType discovery.AddressType) addrTypePortMapKey { … } func (pk addrTypePortMapKey) addressType() discovery.AddressType { … } func getAddressType(address string) *discovery.AddressType { … } // newEndpointSlice returns an EndpointSlice generated from an Endpoints // resource, ports, and address type. func newEndpointSlice(endpoints *corev1.Endpoints, ports []discovery.EndpointPort, addrType discovery.AddressType, sliceName string) *discovery.EndpointSlice { … } // getEndpointSlicePrefix returns a suitable prefix for an EndpointSlice name. func getEndpointSlicePrefix(serviceName string) string { … } // addressToEndpoint converts an address from an Endpoints resource to an // EndpointSlice endpoint. func addressToEndpoint(address corev1.EndpointAddress, ready bool) *discovery.Endpoint { … } // epPortsToEpsPorts converts ports from an Endpoints resource to ports for an // EndpointSlice resource. func epPortsToEpsPorts(epPorts []corev1.EndpointPort) []discovery.EndpointPort { … } // getServiceFromDeleteAction parses a Service resource from a delete // action. func getServiceFromDeleteAction(obj interface{ … } // getEndpointsFromDeleteAction parses an Endpoints resource from a delete // action. func getEndpointsFromDeleteAction(obj interface{ … } // getEndpointSliceFromDeleteAction parses an EndpointSlice from a delete action. func getEndpointSliceFromDeleteAction(obj interface{ … } // endpointsControllerKey returns a controller key for an Endpoints resource but // derived from an EndpointSlice. func endpointsControllerKey(endpointSlice *discovery.EndpointSlice) (string, error) { … } // skipMirror return true if the LabelSkipMirror label has been set to // "true". func skipMirror(labels map[string]string) bool { … } // hasLeaderElection returns true if the LeaderElectionRecordAnnotationKey is // set as an annotation. func hasLeaderElection(annotations map[string]string) bool { … } // cloneAndRemoveKeys is a copy of CloneAndRemoveLabels // it is used here for annotations and labels func cloneAndRemoveKeys(a map[string]string, keys ...string) map[string]string { … } // managedByChanged returns true if one of the provided EndpointSlices is // managed by the EndpointSlice controller while the other is not. func managedByChanged(endpointSlice1, endpointSlice2 *discovery.EndpointSlice) bool { … } // managedByController returns true if the controller of the provided // EndpointSlices is the EndpointSlice controller. func managedByController(endpointSlice *discovery.EndpointSlice) bool { … }