networking

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForConnectionOnServicePort added in v0.19.0

func WaitForConnectionOnServicePort(ctx context.Context, c kubernetes.Interface, namespace, name string, port int, dialTimeout time.Duration) error

WaitForConnectionOnServicePort waits until it can make successful TCP connections to a service (provided by namespace/name). This will temporarily create a LoadBalancer type Service to allow connections to the Service and port from outside the cluster while the connection attempts are made using the LoadBalancer public address.

func WaitForServiceLoadBalancerAddress

func WaitForServiceLoadBalancerAddress(ctx context.Context, c kubernetes.Interface, namespace, name string) (string, bool, error)

WaitForServiceLoadBalancerAddress waits for a service provided by namespace/name to have an ingress IP or Host provisioned and returns that address. This function will throw an error if the service gets provisioned more than a single address, that is not supported. The context provided should have a timeout associated with it or you're going to have a bad time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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