endpoints

package
v1.15.12-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const ServiceStartTimeout = 3 * time.Minute

ServiceStartTimeout is how long to wait for a service endpoint to be resolvable.

Variables

This section is empty.

Functions

func ValidateEndpointsPorts

func ValidateEndpointsPorts(c clientset.Interface, namespace, serviceName string, expectedEndpoints PortsByPodName) error

ValidateEndpointsPorts validates that the given service exists and is served by the given expectedEndpoints.

func WaitForEndpoint

func WaitForEndpoint(c clientset.Interface, ns, name string) error

WaitForEndpoint waits for the specified endpoint to be ready.

Types

type PortsByPodName

type PortsByPodName map[string][]int

PortsByPodName is a map that maps pod name to container ports.

type PortsByPodUID

type PortsByPodUID map[types.UID][]int

PortsByPodUID is a map that maps pod UID to container ports.

func GetContainerPortsByPodUID

func GetContainerPortsByPodUID(ep *v1.Endpoints) PortsByPodUID

GetContainerPortsByPodUID returns a PortsByPodUID map on the given endpoints.

Jump to

Keyboard shortcuts

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