Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KubernetesServiceNameIndexField is the name of the Index Field used to index EndpointSlices by their service // owners. KubernetesServiceNameIndexField = "k8sServiceName" // KubernetesServiceNameLabel is the label used to identify the Kubernetes service name on an EndpointSlice. KubernetesServiceNameLabel = "kubernetes.io/service-name" )
Variables ¶
This section is empty.
Functions ¶
func GetServiceNameFromEndpointSlice ¶
func GetServiceNameFromEndpointSlice(slice *discoveryV1.EndpointSlice) string
GetServiceNameFromEndpointSlice returns the value of the Kubernetes service-name label from an EndpointSlice.
func ServiceNameIndexFunc ¶
ServiceNameIndexFunc is a client.IndexerFunc that parses a Kubernetes object and returns the value of the Kubernetes service-name label. Used to index EndpointSlices by their service owners.
Types ¶
type FieldIndices ¶
type FieldIndices map[string]client.IndexerFunc
FieldIndices is a map of field names to their indexer functions.
func CreateEndpointSliceFieldIndices ¶
func CreateEndpointSliceFieldIndices() FieldIndices
CreateEndpointSliceFieldIndices creates a FieldIndices map for the EndpointSlice resource.
Click to show internal directories.
Click to hide internal directories.