endpointslices

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointPortInfo added in v0.0.3

type EndpointPortInfo struct {
	EndpointPort  discoveryv1.EndpointPort
	ContainerPort corev1.ContainerPort
}

Holds a mapping between a container port and it's corresponding endpointslice Port.

type EndpointSlicesExporter

type EndpointSlicesExporter struct {
	*client.ClientSet
	// contains filtered or unexported fields
}

func (*EndpointSlicesExporter) LoadExposedEndpointSlicesInfo added in v0.0.3

func (ep *EndpointSlicesExporter) LoadExposedEndpointSlicesInfo() error

load endpoint slices for services from type loadbalancer and node port, or with port specified with hostNetwork or hostPort.

func (*EndpointSlicesExporter) NodeToGroup added in v0.0.5

func (ep *EndpointSlicesExporter) NodeToGroup() map[string]string

NodeToGroup returns Node→Group mapping. - When MCPs exist: uses the MCP pool name. - When MCPs do not exist (e.g., HyperShift): prefers the 'hypershift.openshift.io/nodePool' label. - Otherwise: falls back to the node role.

func (*EndpointSlicesExporter) ToComDetails

func (ep *EndpointSlicesExporter) ToComDetails() ([]types.ComDetails, error)

type EndpointSlicesInfo

type EndpointSlicesInfo struct {
	EndpointSlice discoveryv1.EndpointSlice
	Service       corev1.Service
	Pods          []corev1.Pod
}

type NoOwnerRefErr

type NoOwnerRefErr struct {
	// contains filtered or unexported fields
}

func (*NoOwnerRefErr) Error

func (e *NoOwnerRefErr) Error() string

Jump to

Keyboard shortcuts

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