index

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func ServiceNameIndexFunc(obj client.Object) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL