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.Clientset, 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.Clientset, 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.