Documentation ¶
Index ¶
- func GetEndpointSlice(service *v1.Service, pods *v1.PodList, addressType v1discovery.AddressType, ...) (*v1discovery.EndpointSlice, error)
- func GetEndpointSliceName(service *v1.Service, addressType v1discovery.AddressType) string
- func MergeEndpointSlices(endpointSliceA *v1discovery.EndpointSlice, ...) *v1discovery.EndpointSlice
- func SplitEndpointSlices(endpointSlice *v1discovery.EndpointSlice) (*v1discovery.EndpointSlice, *v1discovery.EndpointSlice)
- type GetIPs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpointSlice ¶
func GetEndpointSlice( service *v1.Service, pods *v1.PodList, addressType v1discovery.AddressType, networks []*v1alpha1.Network, getIPsFunc GetIPs, ) (*v1discovery.EndpointSlice, error)
func GetEndpointSliceName ¶
func GetEndpointSliceName(service *v1.Service, addressType v1discovery.AddressType) string
GetEndpointSliceName concatenates the service name and the address type (ip family).
func MergeEndpointSlices ¶
func MergeEndpointSlices( endpointSliceA *v1discovery.EndpointSlice, endpointSliceB *v1discovery.EndpointSlice, ) *v1discovery.EndpointSlice
MergeEndpointSlices merges two endpoint slices address and keep the data from endpointSliceA if endpointSliceA and endpointSliceB data are not corresponding.
func SplitEndpointSlices ¶
func SplitEndpointSlices( endpointSlice *v1discovery.EndpointSlice, ) (*v1discovery.EndpointSlice, *v1discovery.EndpointSlice)
SplitEndpointSlices splits an endpoint slice into 2 (ipv4 and ipv6) Only endpoints are kept.
Types ¶
Click to show internal directories.
Click to hide internal directories.