ingress

package
v0.0.0-...-2cb4bbe Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointFromService

func EndpointFromService(svc *v1.Service) (string, error)

EndpointFromService extracts the endpoint from the service's ingress.

func GetIngressEndpoint

func GetIngressEndpoint(ctx context.Context, kubeClientset kubernetes.Interface, endpointOverride string) (address string, portMap func(string) string, err error)

GetIngressEndpoint gets the ingress public IP or hostname. address - is the endpoint to which we should actually connect. portMap - translates the request's port to the port on address to which the caller

should connect.  This is used when the resolution to address goes through some
sort of port-mapping, e.g. Kubernetes node ports.

err - an error when address/portMap cannot be established.

Types

This section is empty.

Jump to

Keyboard shortcuts

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