package
0.32.0-beta.0
Repository: https://github.com/kubernetes/endpointslice.git
Documentation: pkg.go.dev
# Functions
EndpointsEqualBeyondHash returns true if endpoints have equal attributes but excludes equality checks that would have already been covered with endpoint hashing (see hashEndpoint func for more info) and ignores difference in ResourceVersion of TargetRef.
GetPodFromDeleteAction returns a pointer to a pod if one can be derived from obj (could be a *v1.Pod, or a DeletionFinalStateUnknown marker item).
GetPodServiceMemberships returns a set of Service keys for Services that have a selector matching the given pod.
GetServicesToUpdateOnPodChange returns a set of Service keys for Services that have potentially been affected by a change to this pod.
IsPodReady returns true if Pods Ready condition is true copied from k8s.io/kubernetes/pkg/api/v1/pod.
NewEndpointSliceTracker creates and initializes a new endpointSliceTracker.
NewPortMapKey generates a PortMapKey from endpoint ports.
NewTriggerTimeTracker creates a new instance of the TriggerTimeTracker.
ShouldPodBeInEndpoints returns true if a specified pod should be in an Endpoints or EndpointSlice resource.
ShouldSetHostname returns true if the Hostname attribute should be set on an Endpoints Address or EndpointSlice Endpoint.
# Structs
EndpointSliceTracker tracks EndpointSlices and their associated generation to help determine if a change to an EndpointSlice has been processed by the EndpointSlice controller.
ServiceKey is a key uniquely identifying a Service.
ServiceState represents a state of an Service object that is known to this util.
TriggerTimeTracker is used to compute an EndpointsLastChangeTriggerTime annotation.
# Type aliases
EndpointSet provides simple methods for comparing sets of Endpoints.
GenerationsBySlice tracks expected EndpointSlice generations by EndpointSlice uid.
PortMapKey is used to uniquely identify groups of endpoint ports.